Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

NumberFormatException with "XXX" format, when time zone is "+0900" #37

Closed
irgaly opened this issue Apr 15, 2019 · 0 comments
Closed

NumberFormatException with "XXX" format, when time zone is "+0900" #37

irgaly opened this issue Apr 15, 2019 · 0 comments

Comments

@irgaly
Copy link

irgaly commented Apr 15, 2019

At klock version 1.1.1, this code throws NumberFormatException. Is this expected behvior ?

DateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSXXX").parse("2019-04-15T17:28:46.862+0900")

java.lang.NumberFormatException: For input string: "862+0900"

Note: the format yyyy-MM-dd'T'HH:mm:ss.SSSZ works fine for +0900 , and yyyy-MM-dd'T'HH:mm:ss.SSSXXX works fine for +09:00.

yyyy-MM-dd'T'HH:mm:ss.SSSZ is no Exception, but parsed that time as UTC, so it's also wrong result.

@soywiz soywiz closed this as completed in 18fde25 Sep 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant