-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tz: change arrangement of internal time zone databases
Jiff has three different kinds of databases that it can draw time zone transitions from: the standard Unix zoneinfo database, a bundled or embedded zoneinfo database (compiled into the binary), or the special Android concatenated zoneinfo database. Previously, we would try to create as many of these databases as possible, and then look all time zones up in each. I think that this type of semantic is very messy, because you can wind up drawing from one db for one time zone and another db for another (although in theory this shouldn't happen if they're all in sync). It also requires that you always look for all three, which feels wrong. Instead, we now just look for one and stop when we find it. Effectively, we changed the internals from a product to a sum. On Android, we check for a concatenated tzdb first, since that's likely what we'll find. Fixes #213
- Loading branch information
1 parent
d808d76
commit 1bf702b
Showing
4 changed files
with
142 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters