Incorrect time zone handling before 1883 #54294
Labels
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-community
Originated from the community
X-blathers-triaged
blathers was able to find an owner
Describe the problem
Time zone handling for dates before some time in 1883 or so (perhaps November 18, 1883 when standard time began) is incorrect (or at least differs from PostgreSQL).
To Reproduce
Expected behavior
The first two results of the last query doesn't match PostgreSQL:
"1882-05-23 00:00:24-05:50:36"
"1883-05-23 00:00:24-05:50:36"
"1884-05-22 23:51:00-06"
"1885-05-22 23:51:00-06"
They include a seconds offset in the time zone so that the result is correct.
Environment:
Additional context
I discovered this issue in the Django test suite:
The text was updated successfully, but these errors were encountered: