Skip to content

Commit

Permalink
Revert "fix(golang): in setTime use now.location()"
Browse files Browse the repository at this point in the history
This reverts commit 2b525e3.
  • Loading branch information
Jeremy PLANCKEEL committed Aug 1, 2022
1 parent 2b525e3 commit e525b8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func SetTime(str string, now time.Time) (time.Time, error) {
}

hour, min, sec := timeStamp.Clock()
dateTime := time.Date(now.Year(), now.Month(), now.Day(), hour, min, sec, 0, now.Location())
dateTime := time.Date(now.Year(), now.Month(), now.Day(), hour, min, sec, 0, time.UTC)

return dateTime, nil
}
Expand Down

0 comments on commit e525b8f

Please sign in to comment.