question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No timezone data files registered

See original GitHub issue

Why 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:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
scottyabcommented, Jun 22, 2017

@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'

0reactions
emartynovcommented, Jun 22, 2017

Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found