Skip to content

time: Parse doesn't handle the WITA timezone #18251

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

Closed
i0exception opened this issue Dec 8, 2016 · 1 comment
Closed

time: Parse doesn't handle the WITA timezone #18251

i0exception opened this issue Dec 8, 2016 · 1 comment
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@i0exception
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version go1.7 linux/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build802273434=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

What did you do?

https://play.golang.org/p/5QrELIrjNQ Golang's time.Parse() doesn't handle the WITA timezone (https://www.timeanddate.com/time/zones/).

parseTimeZone defined in (golang.org/src/time/format.go) expects any 4 lettered timezone to end in T, but WITA doesn't

What did you expect to see?

Not an error.

What did you see instead?

Error while parsing

@bradfitz bradfitz changed the title time.Parse doesn't handle the WITA timezone time: Parse doesn't handle the WITA timezone Dec 8, 2016
@bradfitz bradfitz added this to the Go1.9 milestone Dec 8, 2016
@bradfitz bradfitz added the NeedsFix The path to resolution is known, but the work has not been done. label Dec 8, 2016
@gopherbot
Copy link
Contributor

CL https://golang.org/cl/34253 mentions this issue.

@golang golang locked and limited conversation to collaborators Dec 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

3 participants