Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add timezone support for timestamp conversion #319

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Conversation

chmouel
Copy link
Owner

@chmouel chmouel commented Feb 13, 2025

Added support for specifying a timezone using the --timezone flag or the SNAZY_TIMEZONE environment variable. This allows timestamps to be displayed in the specified timezone instead of the server's default timezone (usually UTC). Updated the Config struct and related functions to handle timezone conversion. Added tests to verify the correct parsing and conversion of timestamps with timezones.

Fixes #276

Added support for specifying a timezone using the `--timezone` flag or the
`SNAZY_TIMEZONE` environment variable. This allows timestamps to be displayed
in the specified timezone instead of the server's default timezone (usually
UTC). Updated the `Config` struct and related functions to handle timezone
conversion. Added tests to verify the correct parsing and conversion of
timestamps with timezones.

Fixes #276

Signed-off-by: Chmouel Boudjnah <chmouel@chmouel.com>
@chmouel chmouel merged commit 23631c4 into main Feb 13, 2025
7 checks passed
@chmouel chmouel deleted the add-timezone-flag branch February 13, 2025 12:21
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.

Expand Support for Multiple Time Zones Beyond UTC
1 participant