Re: [go-nuts] Timezone parsing discrepancy

2016-11-22 Thread david . claridge
Thanks Shawn & Andrew for your replies. Ignoring the TZ abbreviation when it doesn't happen to be the local TZ seems like somewhat undesirable behavior. Unfortunately I can't work around this by switching to numeric zones, since I'm not in control of the input I'm parsing. Is there a fundamenta

[go-nuts] Timezone parsing discrepancy

2016-11-21 Thread David Claridge
Hello, I'm having some difficulty with timezones and date parsing. https://golang.org/pkg/time/#Parse says that: const longForm = "Jan 2, 2006 at 3:04pm (MST)" t, _ := time.Parse(longForm, "Feb 3, 2013 at 7:54pm (PST)") fmt.Println(t) should produce: 2013-02-03 19:54:00 -0800 PST but https://p