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: don't print nil Location as "UTC" #11059

178inaba opened this issue Jun 4, 2015 · 3 comments


None yet
4 participants
Copy link

commented Jun 4, 2015

Hi there
The first time I'll post.

time.LoadLocation() If an invalid value is passed on, it is displayed in fmt.Println() "UTC".
However, actually nil so panic occurs when you use the Location.
This behavior is
Due to that it returns the UTC above.

I think this behavior had better fix.
Location I think is that we should be printed as if nil "".
Or, I think Location came back is good if it is available as UTC.
In that case,
I think I should I return the UTC above.

I think this sentence because English is not good I wrote in the google translation.
I'm sorry if there is an unknown sentence.

Thank you for reading to the last.
golang love! Fun!


This comment has been minimized.

Copy link

commented Jun 4, 2015

I was wrong.
So you have changed to an error such as the current master "can not find undef in zip file".
It seems to return the Error at the location of the above-mentioned URL.

@ianlancetaylor ianlancetaylor changed the title behavior when an invalid value is passed to the time.LoadLocation() time: don't print nil Location as "UTC" Jun 4, 2015

@ianlancetaylor ianlancetaylor added this to the Go1.6 milestone Jun 4, 2015


This comment has been minimized.

Copy link

commented Sep 2, 2015

CL mentions this issue.


This comment has been minimized.

Copy link

commented Oct 24, 2015

No thanks. See discussion on CL 14176.

@rsc rsc closed this Oct 24, 2015

@golang golang locked and limited conversation to collaborators Oct 24, 2016

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.