time: (*Time).Unix not equal in location Asia/Shanghai #37277
Labels
ExpertNeeded
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
always
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
t2 print output is 1890-01-01 00:00:00 +0800 CST
What did you see instead?
1889-12-31 23:54:17 +0800 CST
btw:
I got this:
https://history.stackexchange.com/questions/8287/why-did-the-clocks-go-back-in-shanghai-on-december-31-1927
and it's means there was a timezone change since 1927.
BUT i try the code from 1890 to 1905,then found out in 1905 case ,t1 equals to t2.
any help will be appreciated
The text was updated successfully, but these errors were encountered: