Skip to content

feat(events): store short timezone label on Buzz Event#282

Merged
harshtandiya merged 1 commit into
mainfrom
backport-277-to-main
Jul 23, 2026
Merged

feat(events): store short timezone label on Buzz Event#282
harshtandiya merged 1 commit into
mainfrom
backport-277-to-main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #277 to main.

* feat(events): store short timezone label on Buzz Event

Buzz Event time_zone holds IANA names (Asia/Dubai) which read poorly on
public pages, so the dashboard hid them. Saving an event now derives a
short display label (GST, IST, EDT, or GMT+x fallback) into a new
read-only time_zone_label field, computed at the event start datetime so
DST zones get the abbreviation in effect then.

Resolution order: tzdata abbreviation when it ships a real one, curated
map for zones tzdata reduced to numeric offsets in 2017, formatted GMT
offset as safety net.

Dashboard event header shows the label again; guest booking and custom
form APIs expose it; a patch backfills existing events.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* fix(events): harden timezone label conversion and backfill

Backfill patch now skips rows missing start_date/start_time instead of
aborting on unparseable dates. get_time_zone_label converts aware
reference datetimes into the target zone rather than reinterpreting the
wall clock. Curated map covers current IANA names for renamed zones
(America/Nuuk, Asia/Ho_Chi_Minh).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
(cherry picked from commit 6ef02d9)
@harshtandiya harshtandiya changed the title [Backport main] feat(events): store short timezone label on Buzz Event feat(events): store short timezone label on Buzz Event Jul 23, 2026
@harshtandiya
harshtandiya enabled auto-merge July 23, 2026 14:03
@harshtandiya
harshtandiya added this pull request to the merge queue Jul 23, 2026
Merged via the queue into main with commit 7a4ab07 Jul 23, 2026
8 checks passed
@harshtandiya
harshtandiya deleted the backport-277-to-main branch July 23, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant