mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-09-19 12:16:24 +08:00
fix(wopan): use fixed timezone for parsing time (#1170)
fix(wopan): update getTime function to use fixed timezone for parsing Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
This commit is contained in:
@ -36,5 +36,6 @@ func (d *Wopan) getSpaceType() string {
|
||||
|
||||
// 20230607214351
|
||||
func getTime(str string) (time.Time, error) {
|
||||
return time.Parse("20060102150405", str)
|
||||
loc := time.FixedZone("UTC+8", 8*60*60)
|
||||
return time.ParseInLocation("20060102150405", str, loc)
|
||||
}
|
||||
|
Reference in New Issue
Block a user