Skip to content

Commit

Permalink
time.Now() returns local time by default (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
moredure committed Mar 25, 2022
1 parent efbd061 commit 9784262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql.go
Expand Up @@ -64,7 +64,7 @@ func (dialector Dialector) Name() string {
func (dialector Dialector) NowFunc(n int) func() time.Time {
return func() time.Time {
round := time.Second / time.Duration(math.Pow10(n))
return time.Now().Local().Round(round)
return time.Now().Round(round)
}
}

Expand Down

0 comments on commit 9784262

Please sign in to comment.