fix timezone

This commit is contained in:
Thein Lin Kyaw
2023-02-09 14:55:43 +06:30
parent c580cc731a
commit 944f7a7259
52 changed files with 238 additions and 236 deletions

View File

@@ -46,7 +46,7 @@ class Foodcourt::ShiftsController < BaseFoodcourtController
shift_id = params[:shift_id]
@shift = ShiftSale.find_by_id(shift_id)
if @shift
@shift.shift_closed_at = DateTime.now.utc
@shift.shift_closed_at = Time.now
@shift.closing_balance = closing_balance.to_f
@shift.save