phuslu / log

Fastest structured logging
MIT License
672 stars 44 forks source link

Time() always format with local timezone #48

Closed nuharaf closed 3 years ago

nuharaf commented 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

phuslu commented 3 years ago

thanks, fixed in master https://github.com/phuslu/log/commit/fd52469c0630c2a838edf09492aadf49ea5dd1a4