Skip to content

Commit 7a9d73c

Browse files
committed
Fixes different timezones for calendar export
1 parent 17842c8 commit 7a9d73c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/plan/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ def get(self, *args, **kwargs):
925925
tzinfo="America/New_York")
926926

927927
e.end = arrow.get(end_datetime, "YYYY-MM-DD h:mm A",
928-
tzinfo="America/New York")
928+
tzinfo="America/New_York")
929929

930930
location = None
931931
if hasattr(first_meeting, "room") and first_meeting.room:
@@ -936,8 +936,8 @@ def get(self, *args, **kwargs):
936936
e.location = location
937937

938938
end_date = arrow.get(
939-
first_meeting.end_date, "YYYY-MM-DD", tzinfo="America/New York"
940-
).format("YYYYMMDDTHHmmss")
939+
first_meeting.end_date, "YYYY-MM-DD", tzinfo="America/New_York"
940+
).to("UTC").format("YYYYMMDDTHHmmss")
941941

942942
e.extra.append(
943943
ContentLine(

0 commit comments

Comments
 (0)