Skip to content

Commit

Permalink
fix: Return the current time in UTC (#267)
Browse files Browse the repository at this point in the history
Calling the UTC() method when getting the current time might be helpful
in time zone conversions.
  • Loading branch information
gkats authored Feb 26, 2024
1 parent 80713c3 commit c1f5081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clerk.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ type defaultClock struct{}

// Now returns the current time.
func (c *defaultClock) Now() time.Time {
return time.Now()
return time.Now().UTC()
}

// NewClock returns a default clock implementation which calls
Expand Down

0 comments on commit c1f5081

Please sign in to comment.