feat(events): store short timezone label on Buzz Event#282
Merged
Conversation
* 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
approved these changes
Jul 23, 2026
harshtandiya
enabled auto-merge
July 23, 2026 14:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated backport of #277 to
main.