mirror of
https://github.com/stashapp/stash.git
synced 2025-12-07 17:02:38 +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
|
// if we can't parse using the legacy format, return the original error
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// convert timezoned time to UTC
|
||||||
|
parsed = parsed.UTC()
|
||||||
}
|
}
|
||||||
t.Time = parsed
|
t.Time = parsed
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue