Validate timezones before render and update changelog

This commit is contained in:
7w1 committed 2026-03-02 12:22:12 -06:00
1 parent 346c650601
commit 4f0286a3c3
2 files changed
+13 -6

No files matched your search

+2
View File
@@ -4,6 +4,8 @@
- Add validation to timezones before rendering.
- Fix invalid matrix.to event link generation ([cinnyapp#2717](https://github.com/cinnyapp/cinny/pull/2717)) - [tulir](https://github.com/tulir)
- Fix Call Rooms' chat button ([#58](https://github.com/7w1/sable/pull/58)) - [Rosy-iso](https://github.com/Rosy-iso)
- Strip quotes for mxc urls converted to http for tuwunel ([#56](https://github.com/7w1/sable/pull/56)) - [Rosy-iso](https://github.com/Rosy-iso)
## 1.2.3 - 3/2/2026
@@ -74,14 +74,19 @@ function UserExtendedSection({
};
const pronouns = profile.pronouns?.map((p: any) => clamp(p.summary, 16)).join(', ');
const timezone = profile.timezone ? clamp(profile.timezone, 64) : null;
const localTime = timezone
? new Intl.DateTimeFormat([], {
const localTime = useMemo(() => {
if (!profile.timezone) return null;
try {
return new Intl.DateTimeFormat([], {
hour: 'numeric',
minute: '2-digit',
timeZone: timezone,
}).format(new Date())
: null;
timeZone: profile.timezone,
}).format(new Date());
} catch {
return null;
}
}, [profile.timezone]);
const bioContent = useMemo(() => {
let rawBio =