Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
time: system TZ is UTC, but time.Local != time.UTC #9832
This was a very unexpected bug, considering all output and other logging statements matched up.
$ cat tt.go
$ go run tt.go
go version devel +2d02ff2 Sat Dec 13 10:18:27 2014 +0000 linux/amd64
TBH I was using time.Time as map keys when I stumbled on this, so I couldn't use Time.Equal anyways.
The code above was just a minimal test case, since even when trying to debug this the output matched exactly. I had to dig all the way into zoneinfo_unix.go to see that they weren't the same value.
@ianlancetaylor I've seen the note, but it's not clear that Local = "UTC" and UTC = "UTC" are different things. Obviously bugs/docs are up to y'all, at least now if someone else has the issue they'll be able to google this particular edge case. Cheers
yeah that's what I'm doing now.... but again, docs make it unclear that I
On Tue, Feb 10, 2015 at 4:22 PM, Ingo Oeser firstname.lastname@example.org