fix(189): force use CN time zone (close #2240)

This commit is contained in:
Noah Hsu
2022-11-07 16:37:47 +08:00
parent 46701a176d
commit f3a5e3702d
2 changed files with 10 additions and 3 deletions

8
pkg/utils/time.go Normal file
View File

@ -0,0 +1,8 @@
package utils
import "time"
func MustParseCNTime(str string) time.Time {
lastOpTime, _ := time.ParseInLocation("2006-01-02 15:04:05 -07", str+" +08", time.Local)
return lastOpTime
}