Repository navigation
Consuming updates? #121
Replies: 4 comments
|
Timeshape relies on Java runtime handling the Under the hood Timeshape just keeps a mapping between time zone polygons and string representation of timezone IDs. The timezone IDs are picked from the source data in timezone-boundary-builder every time a new release of Timeshape is built. During initialization Timeshape tries to create the relevant instances of Hope this helps. Please feel free to follow up if any part of this explanation is not clear! A PR adding an explanation of this process to the readme/docs would be welcome as well! 😃 |
|
Very helpful, thank you. The latter part - when the time zone polygon to time zone ID map is updated, and there is a new build of Timeshape consuming that update - I'd need to rebuild my software depending on that new build, correct? There's no way to consume the update in the source data at run-time? It sounds like an inconsistency between the |
There is such way, actually. It's not super-prominent in the readme, but if you look at the last paragraph here you can read this:
Using this approach you can build the release data separately and re-initialize the P.S. I wonder how popular this use case is, to update the Timeshape data without re-building the main program. Maybe there should be a more convenient way to do this? @escott-irt if you feel like the existing solution could be improved, I'd gladly discuss how this could be done and can provide implementation guidance, if you'd be interested in taking on this. |
|
Ah! Thanks for explaining that. I had noticed that mentioned in the readme but not grasped what it meant. I would speculate that updating the The ability to initialize based on an external We are just researching options right now and not yet making use of |
Uh oh!
There was an error while loading. Please reload this page.
Sorry if I missed it somewhere in the documentation, but I am wondering how updates to the IANA TZ database (which consequently trigger updates to timezone-boundary-builder) would be absorbed?
Would I need to rebuild my software with a new version of timeshape? Or is there some way to consume an update at runtime (similar to how the JVM has a tzupdater.jar Timezone Updater Tool to update the data set).
All reactions