Skip to content

Commit e22a751

Browse files
NarayanBavisettilifeiscontent
authored andcommitted
[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
1 parent 1e3c987 commit e22a751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apiserver/plane/utils/timezone_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def convert_to_utc(
7777
current_datetime_in_project_tz = timezone.now().astimezone(local_tz)
7878
current_datetime_in_utc = current_datetime_in_project_tz.astimezone(pytz.utc)
7979

80-
if utc_datetime.date() == current_datetime_in_utc.date():
80+
if localized_datetime.date() == current_datetime_in_project_tz.date():
8181
return current_datetime_in_utc
8282

8383
return utc_datetime

0 commit comments

Comments
 (0)