Skip to content

Fix panic when formatting timestamp with timezone specifier#983

Merged
Keats merged 1 commit intoKeats:masterfrom
klevente:issue-982-fix-panic-for-timestamp-format-with-timezone-specifier
Dec 6, 2025
Merged

Fix panic when formatting timestamp with timezone specifier#983
Keats merged 1 commit intoKeats:masterfrom
klevente:issue-982-fix-panic-for-timestamp-format-with-timezone-specifier

Conversation

@klevente
Copy link
Contributor

@klevente klevente commented Dec 4, 2025

Closes #982

Fixes a panic that occurs when a timestamp is formatted using date with any timezone-related specifiers (%Z, %z) when a timezone argument is not provided. Datetime strings already handle this case by assuming the value is in UTC, so the fix here is to do the same for timestamps as well.

Fixes a panic that occurs when a timestamp is formatted using `date`
with any timezone-related specifiers (`%Z`, `%z`) when a timezone
argument is not provided. Datetime strings already handle this case by
assuming the value is in UTC, so the fix here is to do the same for
timestamps as well.
@Keats Keats merged commit 14262cd into Keats:master Dec 6, 2025
6 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.

Panic when rendering timezone of epoch seconds using date

2 participants