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.

java.lang.IllegalArgumentException: Unknown timezone: Africa/Lagos

See original GitHub issue

Hi, 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:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jerryheircommented, Jul 27, 2019

And my Java knowledge is lower than that of a beginner

1reaction
henninghallcommented, Jul 28, 2019

Thats great!

Read more comments on GitHub >

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

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