[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:
Bavisetti Narayan 2025-02-24 19:51:13 +05:30 committed by GitHub
parent aeed6590b7
commit 5f3d02606c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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