Skip to content

time: cannot parse GMT timezones with colon-separated offsets #9881

@DanielHeath

Description

@DanielHeath

go version
go version go1.4 linux/amd64

uname -a
Linux daniel-linux 3.16.0-28-generic #38-Ubuntu SMP Fri Dec 12 17:37:40 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

This program shows my attempt to parse the time: http://play.golang.org/p/2-YXz2wdIx

I've traced it to src/time/format.go, which consumes any integers following the letters GMT.

The minutes (after the colon) then cause a parse failure.

Because the letters GMT are treated specially, I don't think it's possible to parse this time with the time package.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions