Re: [go-nuts] how to control the timezone of time.Now()

2021-10-27 Thread 'Andrei Matei' via golang-nuts
On Tue, Oct 26, 2021 at 6:09 PM Ian Lance Taylor wrote: > On Tue, Oct 26, 2021 at 2:07 PM Andrei Matei > wrote: > > > > If you accept that there are reasons for setting TZ for a particular > program, then > > would you also agree that there are reasons for wanting to do the same > from inside >

Re: [go-nuts] how to control the timezone of time.Now()

2021-10-26 Thread 'Andrei Matei' via golang-nuts
On Tue, Oct 26, 2021 at 3:15 PM Ian Lance Taylor wrote: > On Tue, Oct 26, 2021 at 11:58 AM 'Andrei Matei' via golang-nuts > wrote: > > > > I'm finding it difficult to satisfactorily control the timezone used by > the time.Now() function. The Go team have tak

[go-nuts] how to control the timezone of time.Now()

2021-10-26 Thread 'Andrei Matei' via golang-nuts
Hello Go friends, I'm finding it difficult to satisfactorily control the timezone used by the time.Now() function. The Go team have taken positions in the past that seem to not make this easy; I'd like to see if I can gather sympathy for changes, or perhaps if there's some obvious idea that I'm mi