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 unable to parse RFC3339 string in local time. #9154

Closed
gopherbot opened this issue Nov 24, 2014 · 3 comments

Comments

Projects
None yet
2 participants
@gopherbot
Copy link

commented Nov 24, 2014

by jrwren:

What does 'go version' print?

1.3.3

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

http://play.golang.org/p/QbwDBmI2D_

1. time.Parse an RFC3339 without a time offset and no trailing Z

What happened?

panic

What should have happened instead?

a time value created using the local time zone.

Please provide any additional information below.


Section 4.3.2 of ISO8601 says:

The zone designator is empty if use is made of local time in accordance with 4.2.2.2
through 4.2.2.4, it is the UTC designator [Z] if use is made of UTC of day in accordance
with 4.2.4 and it is the difference-component if use is made of local time and the
difference from UTC in accordance with 4.2.5.2.
@gopherbot

This comment has been minimized.

Copy link
Author

commented Nov 24, 2014

Comment 1 by jrwren:

How do I delete this bug? I just realized the bug is NOT in time Parse, but rather
json's use of it.
@gopherbot

This comment has been minimized.

Copy link
Author

commented Nov 24, 2014

Comment 2 by jrwren:

Now I see this is not a bug.
https://groups.google.com/forum/#!topic/golang-dev/I1dGXiwhJaw
@minux

This comment has been minimized.

Copy link
Member

commented Nov 24, 2014

Comment 3:

Status changed to Retracted.

@gopherbot gopherbot added the retracted label Nov 24, 2014

@golang golang locked and limited conversation to collaborators Jun 25, 2016

This issue was closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.