Skip to content

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

Closed
sghoshjr wants to merge 4 commits intovladmihalcea:masterfrom
sghoshjr:ft/tzWithOffsetInSeconds
Closed

Support timezone offsets in seconds for Range type (for historical dates in certain timezones)#759
sghoshjr wants to merge 4 commits intovladmihalcea:masterfrom
sghoshjr:ft/tzWithOffsetInSeconds

Conversation

@sghoshjr
Copy link
Copy Markdown
Contributor

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.

@vladmihalcea
Copy link
Copy Markdown
Owner

Thanks, I merged it.

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.

2 participants