Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StdDateFormat._parseAsISO8601() does not parse "fractional" timezone correctly #1788

Closed
larose opened this issue Oct 6, 2017 · 2 comments
Closed
Milestone

Comments

@larose
Copy link

larose commented Oct 6, 2017

I think this line:

should be:

offsetSecs += _parse2D(dateStr, end-2) * 60;

As StdFormat.parse currently fails to parse this string "2017-04-25T13:31:02-0730":

new StdDateFormat().parse("2017-04-25T13:31:02-0730") => Tue Apr 25 16:31:32 EDT 2017

but it should be "Tue Apr 25 21:01:02 EDT 2017".

@cowtowncoder
Copy link
Member

Sounds plausible.

I assume this is tested with 2.9.1?

@larose
Copy link
Author

larose commented Oct 6, 2017 via email

@cowtowncoder cowtowncoder changed the title StdDateFormat._parseAsISO8601 doesn't parse timezone correctly StdDateFormat._parseAsISO8601 doesn't parse "fractional" timezone correctly Oct 10, 2017
@cowtowncoder cowtowncoder changed the title StdDateFormat._parseAsISO8601 doesn't parse "fractional" timezone correctly StdDateFormat._parseAsISO8601() does not parse "fractional" timezone correctly Oct 10, 2017
@cowtowncoder cowtowncoder added this to the 2.9.2 milestone Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants