Paul, The Go Playground sandbox has a few peculiarities, for example for date and time. Results may not match those found in ordinary use.
Peter On Wednesday, August 29, 2018 at 9:24:32 AM UTC-4, Borman, Paul wrote: > > I put your program onto the playground: > https://play.golang.org/p/L0xJgwdLuI3 > > I notice the output is: > > go1.10.3: value '2010-10-27 18:43:32 +0000 UTC' error <nil> > > The default format for printing time (it is documented in the Format > method on time.Time) is: > > Mon Jan 2 15:04:05 -0700 MST 2006 > > Notice the format has both -0700 and MST > > Your second +0000 is in place of UTC on the playground. I would guess > your system does not have the necessary locale information to translate > +0000 to UTC. > > -Paul > > On Aug 29, 2018, at 6:57 AM, Eric Raymond <e...@thyrsus.com <javascript:>> > wrote: > > The attached program emits > > go1.10.1: value '2010-10-27 18:43:32 +0000 +0000' error <nil> > > on my system. Note the duplicated zone field. Is this expected? > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/d/optout. > <gobug2.go> > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.