Merge pull request #1077 from expsa/dev_odex25_mobile

Dev odex25 mobile
This commit is contained in:
eslam 2024-09-11 12:12:02 +03:00 committed by GitHub
commit c6a9b942c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ class LeaveController(http.Controller):
user.tz or 'GMT')
from_date = fields.Datetime.from_string(body["start_date"]).replace(hour=0, minute=0, second=0,
microsecond=0,tzinfo=local_tz)
to_date = fields.Datetime.from_string(body["end_date"]).replace(hour=23, minute=59, second=0,
to_date = fields.Datetime.from_string(body["end_date"]).replace(hour=0, minute=0, second=0,
microsecond=0,tzinfo=local_tz)
utc_dt_from = from_date.strftime("%Y-%m-%d %H:%M:%S")
utc_dt_to = to_date.strftime("%Y-%m-%d %H:%M:%S")
@ -336,7 +336,7 @@ class LeaveController(http.Controller):
user.tz or 'GMT')
from_date = fields.Datetime.from_string(body["start_date"]).replace(hour=0, minute=0, second=0,
microsecond=0, tzinfo=local_tz)
to_date = fields.Datetime.from_string(body["end_date"]).replace(hour=23, minute=59, second=0,
to_date = fields.Datetime.from_string(body["end_date"]).replace(hour=0, minute=0, second=0,
microsecond=0, tzinfo=local_tz)
utc_dt_from = from_date.strftime("%Y-%m-%d %H:%M:%S")
utc_dt_to = to_date.strftime("%Y-%m-%d %H:%M:%S")