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.

TimeZone of UTC+5:30

See original GitHub issue

val localDateTime = Clock.System.now().toLocalDateTime(TimeZone.of("UTC+5:30")) above code is not working I try to use +5:30 but work fine if I used +5. How can I fetch time for +5:30 GMT?

error I received:

Uncaught Kotlin exception: kotlinx.datetime.IllegalTimeZoneException: Invalid ID for ZoneOffset, non numeric characters found: +5:30

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
dkhalanskyjbcommented, Mar 12, 2021

In the first comment, you talked about +5:30, not +05:30 (with the zero), right? +05:30 should work.

0reactions
dkhalanskyjbcommented, May 17, 2021

The TimeZone.currentSystemDefault() issue does not reproduce for me for 0.2.0. Feel free to reopen this issue if the problem persists!

Read more comments on GitHub >

github_iconTop Results From Across the Web

UTC+5:30 now - Time.is
Time zone · UTC +5:30 · UTC+5:30 is 10 hours and 30 minutes ahead of New York.
Read more >
UTC+5:30 Time Now GMT+5:30 - UTC Time
UTC+5:30 Time Now. Current time in UTC/GMT+5:30 time zone is 13:47:26. UTC+05:30 time is 5 hours and 30 minutes ahead from the UTC...
Read more >
UTC+5:30 Zone Current Time and countries list from it
Countries in UTC+5:30 Zone · India: New Delhi · Sri Lanka: Colombo ...
Read more >
UTC+5:30 time zone - World Clock
UTC+05:30 is a time offset that adds 5 hours 30 minutes to Coordinated Universal Time (UTC). It is observed in the IST, SLST...
Read more >
UTC+05:30 - Wikidata
Kunlun Time Zone · Madras Time · Sri Lanka Standard Time · Indian Standard Time · utc+5:30.
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