fix(189pc): some minor problems

This commit is contained in:
foxxorcat
2022-09-11 13:18:29 +08:00
parent 537ca030b2
commit 9c91f062b9
2 changed files with 2 additions and 9 deletions

View File

@ -78,8 +78,7 @@ func timestamp() int64 {
}
func MustParseTime(str string) *time.Time {
loc, _ := time.LoadLocation("Asia/Shanghai")
lastOpTime, _ := time.ParseInLocation("2006-01-02 15:04:05", str, loc)
lastOpTime, _ := time.ParseInLocation("2006-01-02 15:04:05 -07", str+" +08", time.Local)
return &lastOpTime
}