No timezone data files registered
See original GitHub issueWhy would I be getting this? Are the time zone rules not part of the package?
This is the error I get:
System.err: org.threeten.bp.zone.ZoneRulesException: No time-zone data files registered
Here is my code:
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss VV", Locale.ENGLISH)
.withZone(ZoneId.of(cruiseShipEntity.getDateBuilt().getTimeZone()));
ZonedDateTime dateBuilt = ZonedDateTime.parse("2012-06-03 00:00:00 America/New_York", dateTimeFormatter);
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
java - ZoneRulesException: No time-zone data files registered
At first, I used - compile 'com.jakewharton.threetenabp:threetenabp:1.0.3'; Then, I tried - compile 'org.threeten:threetenbp:1.0.3 ...
Read more >No time-zone data files registered #33 - ThreeTen/threetenbp
Hello, I am devising unit tests on the JVM where I need to create an instance: ZonedDateTime dateTimeWithZone = ZonedDateTime.now(); ...
Read more >org.threeten.bp.zone.ZoneRulesException java code examples
This exception is used to indicate a problems with the configured time-zone rules. Specification for implementors. This class is intended for use in...
Read more >Time Zone Data | Android Open Source Project
Changes in Android; Format and dependencies. The Time Zone Data module updates daylight saving time (DST) and time zones on Android devices, ...
Read more >No time-zone data files registered - 최수지 - 티스토리
[오류해결] org.threeten.bp.zone.ZoneRulesException: No time-zone data files registered.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@emartynov i just came across this. the solution I used was to use the java version for the tests. i.e.
testCompile 'org.threeten:threetenbp:1.3.5'Thank you!