mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-19 08:36:37 +08:00
fix(189): force use CN time zone (close #2240)
This commit is contained in:
8
pkg/utils/time.go
Normal file
8
pkg/utils/time.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user