fix: normalize timezone history filters
This commit is contained in:
@@ -810,6 +810,9 @@ func normalizeDateTimeLiteral(value string) string {
|
||||
if len(value) == len("2006-01-02T15:04:05") && value[10] == 'T' {
|
||||
return value[:10] + " " + value[11:]
|
||||
}
|
||||
if parsed, err := time.Parse(time.RFC3339, value); err == nil {
|
||||
return parsed.In(time.FixedZone("Asia/Shanghai", 8*3600)).Format("2006-01-02 15:04:05")
|
||||
}
|
||||
return value
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user