print times in local timezone #217
Merged
6543
merged 5 commits from noerw/tea:local-time
into master
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'noerw/tea:local-time'
Deleting a branch is permanent. It CANNOT be undone. Continue?
before, times would be shown in UTC. now it is shown in local timezone. if a timezone can't be determined, it still falls back to UTC, but is annotated as such. timezone can be overriden with the
TZ
env variable.PR also reduces precision of printed times to minutes instead of seconds.
I'm not a fan of
init
but I guess it's faster this wayI just looked at the internals of the
time
package, and the local zone is looked up only once, so we can get the location everytime without issuesuse local timezone for all timesto print times in local timezone 2 years agoLGTM, please resolve conflicts :)
@techknowlogick done :>
03ec6d0eee
into master 2 years ago03ec6d0eee
.