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

Support timezone offsets in seconds for Range type (for historical dates in certain timezones) #759

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sghoshjr
Copy link

Certain timezones have had offsets in seconds for historical dates, it seems. This causes the Range<ZonedDateTime> to throw errors while parsing these dates if the local system time is one of these timezones.

set timezone to 'Asia/Calcutta';
select tstzrange('1900-01-01 00:00:00Z', 'infinity');
--["1900-01-01 05:21:10+05:21:10",infinity)

set timezone to 'Europe/Paris';
select tstzrange('1900-01-01 00:00:00Z', 'infinity');
--["1900-01-01 00:09:21+00:09:21",infinity)

This PR provides a fix to support zonedDateTime with offsets in seconds.

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