mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Convert legacy parsed date to UTC
This commit is contained in:
parent
11a1e49292
commit
910ff27730
1 changed files with 3 additions and 0 deletions
|
|
@ -39,6 +39,9 @@ func (t *Time) UnmarshalYAML(unmarshal func(interface{}) error) error {
|
|||
// if we can't parse using the legacy format, return the original error
|
||||
return err
|
||||
}
|
||||
|
||||
// convert timezoned time to UTC
|
||||
parsed = parsed.UTC()
|
||||
}
|
||||
t.Time = parsed
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue