4 ms·
That seems to be an issue with the playground: https://github.com/golang/go/issues/12388 https://github.com/golang/go/issues/12388 It seems counter-intuitive t
by teraflop 11y ago
That seems to be an issue with the playground: https://github.com/golang/go/issues/12388 https://github.com/golang/go/issues/12388
It seems counter-intuitive to me that the behavior of time.Parse would depend on a "system location", but apparently it's by design.
- mratzloff 11y agoTime is location-dependant (time zones).
- paradite 11y agoYou are missing the point. My point is that that particular datetime is parsed as 2013-02-03 19:54:00 +0000 PST on some machines, and 2013-02-03 19:54:00 -0800 PST on others. This is means that the timezone offset IS different and the absolute time IS different. One is 8 hours ahead of another even though the original string is the same.