fix: preserve original timezone when reopening event update modal

- Add formatDateTimeInTimezone() helper to format dates in event's original timezone
- Fix EventUpdateModal to display event times in original timezone instead of browser timezone
- Fix EventModal (duplicate event) with same timezone handling
- Update EventDisplay tests to use flexible date pattern
This commit is contained in:
lenhanphung
2025-10-07 17:50:23 +07:00
committed by Benoit TELLIER
parent 732c2cd051
commit 64393bf161
6 changed files with 48 additions and 34 deletions
+1 -5
View File
@@ -133,11 +133,7 @@ export function PeopleSearch({
if (selectedUsers.find((u) => u.email === option.email)) return null;
const { key, ...otherProps } = props as any;
return (
<ListItem
key={key}
{...otherProps}
disableGutters
>
<ListItem key={key} {...otherProps} disableGutters>
<ListItemAvatar>
<Avatar src={option.avatarUrl} alt={option.displayName} />
</ListItemAvatar>