Skip to content

Use time.UTC if the server's timezone is set to a UTC alias#1283

Merged
arp242 merged 1 commit intomasterfrom
u
Mar 16, 2026
Merged

Use time.UTC if the server's timezone is set to a UTC alias#1283
arp242 merged 1 commit intomasterfrom
u

Conversation

@arp242
Copy link
Copy Markdown
Collaborator

@arp242 arp242 commented Mar 16, 2026

These are all aliases of "UTC" in the timezone database. They would scan to the correct offset, but with the original name and comparing to time.UTC would be false.

In most cases this doesn't really matter, but it comes up in tests. e.g. PostgreSQL Docker has Etc/UTC as the default.

These are all aliases of "UTC" in the timezone database. They would scan
to the correct offset, but with the original name and comparing to
time.UTC would be false.

In most cases this doesn't really matter, but it comes up in tests. e.g.
PostgreSQL Docker has Etc/UTC as the default.
@arp242 arp242 merged commit 1e8ca8d into master Mar 16, 2026
13 checks passed
@arp242 arp242 deleted the u branch March 16, 2026 13:05
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.

1 participant