JakeWharton / ThreeTenABP

An adaptation of the JSR-310 backport for Android.
Apache License 2.0
3.55k stars 133 forks source link

Fatal Exception: n30.g Unknown time-zone ID: America/Ciudad_Juarez #139

Closed sureshmaidaragi1 closed 1 year ago

sureshmaidaragi1 commented 1 year ago

Hi There our app is crashing due to Unknown time-zone ID: America/Ciudad_Juarez

Fatal Exception: n30.g: Unknown time-zone ID: America/Ciudad_Juarez
       at org.threeten.bp.zone.ZoneRulesProvider.getProvider(ZoneRulesProvider.java:167)
       at org.threeten.bp.zone.ZoneRulesProvider.getRules(ZoneRulesProvider.java:122)
       at org.threeten.bp.ZoneRegion.ofId(ZoneRegion.java:143)
       at org.threeten.bp.ZoneId.of(ZoneId.java:358)
       at org.threeten.bp.ZoneId.of(ZoneId.java:286)
       at org.threeten.bp.ZoneId.systemDefault(ZoneId.java:245)

Can someone help to check. Looks like this is new timezone added recently

I am using in android with the dependency

com.jakewharton.threetenabp:threetenabp:1.4.3

JakeWharton commented 1 year ago

See https://github.com/ThreeTen/threetenbp/issues/178 and https://github.com/ThreeTen/threetenbp/issues/175#issuecomment-1321756868. You likely are mixing and matching the tzdb of the system with the tzdb of this library which are not guaranteed to be in sync.

sureshmaidaragi1 commented 1 year ago

@JakeWharton as mentioned in the thread you linked, we explicitly dont use them, just we use your dependency

https://github.com/ThreeTen/threetenbp/issues/175#issuecomment-1445336702.

Just rewriting it if I update to the latest threeten dependency would it solves the problem?

JakeWharton commented 1 year ago

This library is only a repackaging of the timezone database from ThreeTenBP so if you use this library you also use that library. I have no idea if updating will fix your issue. You would have to check to see what version of the timezone database added that ID and whether ThreeTenBP and this library have had a release which includes it. Beyond that, though, you have a wider problem of dealing with two sources of a timezone database that are not in-sync and this likely will happen again in the future.