Skip to content

Conversation

@benrobson
Copy link
Member

Motivation

  • Interpret event dates (reveal, redemption start/end) in a configurable timezone so scheduling behaves correctly across servers.
  • Default the event timezone to Australia/Sydney as the expected default for this deployment.
  • Surface times with timezone information in player-facing messages for clarity.
  • Allow server admins to change the event timezone via a single config key event-timezone.

Description

  • Converted date handling to use ZonedDateTime throughout and parse ISO local datetimes then attach the configured zone via DateUtils.getEventZoneId().
  • Added event-timezone to config.yml (default Australia/Sydney) and updated DateUtils to fall back to this default when invalid.
  • Updated FormatterUtils and date formatters to include time and zone (pattern d MMMM yyyy HH:mm z) and adjusted formatted output methods to use ZonedDateTime.
  • Documented the new event-timezone option and timezone behavior in README.md.

Testing

  • No automated tests were executed for this change during the rollout.
  • CI/test suite was not triggered as part of this update.

Codex Task

@coderabbitai
Copy link

coderabbitai bot commented Dec 22, 2025

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch codex/add-timezone-support-for-events

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants