[WEB-3449] chore: changed the logic from utc to project date conversion (#6663)
* chore: changed the logic from utc to project date conversion * chore: changed the cycle to project timezone
This commit is contained in:
parent
aeed6590b7
commit
5f3d02606c
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ def convert_to_utc(
|
|||
current_datetime_in_project_tz = timezone.now().astimezone(local_tz)
|
||||
current_datetime_in_utc = current_datetime_in_project_tz.astimezone(pytz.utc)
|
||||
|
||||
if utc_datetime.date() == current_datetime_in_utc.date():
|
||||
if localized_datetime.date() == current_datetime_in_project_tz.date():
|
||||
return current_datetime_in_utc
|
||||
|
||||
return utc_datetime
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue