Skip to content

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

@larose

Description

@larose

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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions