There was an error while loading. Please reload this page.
1 parent 71a13b0 commit 84dd053Copy full SHA for 84dd053
1 file changed
app/web/features/communities/events/EventTimeChanger.tsx
@@ -34,11 +34,13 @@ interface EventTimeChangerProps
34
35
function toPlainDateTime(
36
timestamp: Timestamp.AsObject,
37
+ timezone?: string,
38
): Temporal.PlainDateTime {
39
const legacyDate = timestamp2Date(timestamp);
40
const instant = Temporal.Instant.fromEpochMilliseconds(legacyDate.getTime());
- // FIXME(#8064): Event times should be interpreted in their timezones.
41
- const zoned = instant.toZonedDateTimeISO(Temporal.Now.timeZoneId());
+ const zoned = instant.toZonedDateTimeISO(
42
+ timezone ?? Temporal.Now.timeZoneId(),
43
+ );
44
return zoned.toPlainDateTime();
45
}
46
0 commit comments