print times in local timezone #217
No reviewers
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#217
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "noerw/tea:local-time"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. 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 timezoneLGTM, please resolve conflicts :)
@techknowlogick done :>