Closed nuharaf closed 3 years ago
I notice when using func (e *Entry) Time(key string, t time.Time) *Entry , t always formatted using my local time zone, even if t has location set to UTC. For comparison, zerolog will format with UTC if t has location set to UTC
func (e *Entry) Time(key string, t time.Time) *Entry
t
thanks, fixed in master https://github.com/phuslu/log/commit/fd52469c0630c2a838edf09492aadf49ea5dd1a4
I notice when using
func (e *Entry) Time(key string, t time.Time) *Entry
,t
always formatted using my local time zone, even ift
has location set to UTC. For comparison, zerolog will format with UTC ift
has location set to UTC