mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-13 16:08:04 -05:00
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Co-authored-by: HAOYUatHZ <haoyu@protonmail.com> Co-authored-by: colinlyguo <colinlyguo@scroll.io>
10 lines
149 B
Go
10 lines
149 B
Go
package utils
|
|
|
|
import "time"
|
|
|
|
// NowUTC get the utc time.Now
|
|
func NowUTC() time.Time {
|
|
utc, _ := time.LoadLocation("")
|
|
return time.Now().In(utc)
|
|
}
|