How can I plug my own TZ data?

95 views Asked by At

I've seen ResourceZoneRulesDataProvider which loads the TZ data via ClassLoader.getResource. But how can I instruct ThreeTen to load my own TZ data instead, say from a shared file system unrelated to my app's CLASSPATH?

2

There are 2 answers

0
JodaStephen On BEST ANSWER

Right now, ResourceZoneRulesDataProvider is hard coded in ZoneRulesGroup. This obviously won't be the final solution, but was a suitable design right now to keep things working. If you need to change this now, you'll need to edit the source of ZoneRulesGroup.

1
Rich On

If this is because of the recent licensing issue, then read: Time zone database rebooted