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

Specify empty TZ string behavior and add more tests #24

Merged
merged 4 commits into from
Mar 20, 2020

Conversation

pganssle
Copy link
Owner

Some Version 2+ files have empty TZ strings, which means that the behavior after the last transition is undefined. For now, we will fall back to "hold the last active value", though "use the last STD value" would also be a reasonable and valid choice. In practice, these may not be terribly different.

This also adds a few more tests to round out both types of invalid TZ string and a few more types of valid TZ string.

@pganssle pganssle force-pushed the tzstr_improvements branch 2 times, most recently from a693371 to bd922bd Compare March 20, 2020 18:06
We will throw an error if we cannot find a TZ string or any ttinfo
information; if TZ string is empty or otherwise missing, pick either the
last ttinfo that applied or the last ttinfo in the list.
@pganssle pganssle merged commit 5982551 into master Mar 20, 2020
@pganssle pganssle deleted the tzstr_improvements branch May 21, 2020 13:45
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.

None yet

1 participant