java.lang.IllegalArgumentException: Unknown timezone: Africa/Lagos
See original GitHub issueHi, I am a React native developer from Lagos, Nigeria in Africa, and I am using react-native-date-picker v2.2.1, RN v0.59.9. During development, even when I run react-native run-android on a physical device, it runs very well but when I build my app to an APK, and I try to use the app, it crashed. It doesn’t do this on iOS and so I checked logcat and I got the error.
java.lang.IllegalArgumentException: Unknown timezone: Africa/Lagos
at net.time4j.tz.l.a(Unknown Source:255)
at net.time4j.tz.l.a(Unknown Source:15)
at net.time4j.tz.l.a(Unknown Source:1)
at net.time4j.d.a.g.a(Unknown Source:0)
at net.time4j.d.a.g.a(Unknown Source:22)
at net.time4j.a.a.run(Unknown Source:14)
at java.lang.Thread.run(Thread.java:764)
I think it’s an issue on android that is specific to my location. Please what is the solution or work around to this?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
java - Some Time Zones return IllegalArgumentException
Some Time Zones return IllegalArgumentException ... This code example uses 3 time zones (EST, PST, EET). For each Time Zone, a Date object...
Read more >Java-Time-Zone-List/TimeZoneList.java at master - GitHub
Provides a list of time zones in Java, suitable for displaying in user interfaces. ... TimeZoneMapping("W. Central Africa Standard Time", "Africa/Lagos", ...
Read more >Diff - platform/system/timezone - Google Git
diff --git a/Android.bp b/Android.bp new file mode 100644 index ... + } + } + throw new IllegalArgumentException("Unknown country code: " + isoCode);...
Read more >jdk-updates/jdk13u: d8c2db195a09
TemporalAdjusters; -import java.time.zone. ... Democratic Republic of the Congo -# See Africa/Lagos for the western part and Africa/Maputo for the eastern.
Read more >Time zone IDs that can be specified for the user.timezone ...
The Time zone ID column lists time zones, in boldface, and the locations within each time zone. ... Africa/Lagos, 1 : 00, Western...
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
And my Java knowledge is lower than that of a beginner
Thats great!