Skip to content

Commit 84dd053

Browse files
Post rebase fixes
1 parent 71a13b0 commit 84dd053

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/web/features/communities/events/EventTimeChanger.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ interface EventTimeChangerProps
3434

3535
function toPlainDateTime(
3636
timestamp: Timestamp.AsObject,
37+
timezone?: string,
3738
): Temporal.PlainDateTime {
3839
const legacyDate = timestamp2Date(timestamp);
3940
const instant = Temporal.Instant.fromEpochMilliseconds(legacyDate.getTime());
40-
// FIXME(#8064): Event times should be interpreted in their timezones.
41-
const zoned = instant.toZonedDateTimeISO(Temporal.Now.timeZoneId());
41+
const zoned = instant.toZonedDateTimeISO(
42+
timezone ?? Temporal.Now.timeZoneId(),
43+
);
4244
return zoned.toPlainDateTime();
4345
}
4446

0 commit comments

Comments
 (0)