Re: [go-nuts] Parsing time with timezones seem to fail

2023-02-13 Thread 'Thomas Casteleyn' via golang-nuts
Hi Sam, While I do acknowledge there might be some timezones that are ambiguous, it certainly is not the case for CET and MST. IMHO those should be able to be correctly parsed by time.Parse and time.ParseInLocation. If provided an ambiguous timezone to time.Parse, that should maybe return an er

Re: [go-nuts] Parsing time with timezones seem to fail

2023-02-10 Thread 'Thomas Casteleyn' via golang-nuts
, _ = time.ParseInLocation(layout, v, loc) glibc is doing this better IMHO. On Thursday, February 9, 2023 at 8:47:52 PM UTC+1 Ian Lance Taylor wrote: > On Thu, Feb 9, 2023 at 11:26 AM 'Thomas Casteleyn' via golang-nuts > wrote: > > > > Hi, I originally asked on Gophers sla

[go-nuts] Parsing time with timezones seem to fail

2023-02-09 Thread 'Thomas Casteleyn' via golang-nuts
Hi, I originally asked on Gophers slack where they directed me to this group. It seems I'm not able to parse these 2 timestamps with timezone correctly: https://go.dev/play/p/VZwD29701ps The responses show confusing time formats and the playground even seems to be more wrong than on my local m