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

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

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

Comments

@i0exception
Copy link

@i0exception i0exception commented Dec 8, 2016

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 label Dec 8, 2016
@gopherbot
Copy link

@gopherbot gopherbot commented Dec 11, 2016

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

@gopherbot gopherbot closed this in bc61026 Dec 12, 2016
@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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.