Skip to content

Conversation

@tompscanlan
Copy link
Contributor

Summary

  • Event times in Open Graph meta tags (link previews) were displayed in UTC instead of the event's timezone
  • An event created for 6:00 PM EST was showing as 11:00 PM in Bluesky/social media link previews

Changes

  • Updated formatEventDateTime() to accept a timeZone parameter
  • Pass event.timeZone to formatters in both buildEventDescription() and renderMetaHTML()
  • Default to UTC when no timezone is provided
  • Added timeZoneName: 'short' to show timezone abbreviation (EST, PST, etc.)

Test plan

  • Added 3 unit tests for timezone formatting:
    • Event with America/New_York timezone shows EST time
    • Event with America/Los_Angeles timezone shows PST time
    • Events without timezone default to UTC gracefully
  • All 45 tests passing

Event times in Open Graph meta tags (link previews) were displayed
in UTC instead of the event's timezone, causing confusion when
sharing events on social platforms.

- Update formatEventDateTime() to accept a timeZone parameter
- Pass event.timeZone to formatEventDateTime() in buildEventDescription()
- Add timeZone option to inline formatter in renderMetaHTML()
- Default to UTC when no timezone is provided
- Add timeZoneName: 'short' to show timezone abbreviation (EST, PST, etc.)

Fixes issue where 6:00 PM EST event showed as 11:00 PM in previews.
@tompscanlan tompscanlan merged commit 4630f68 into main Jan 9, 2026
4 checks passed
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.

2 participants