mirror of
https://github.com/stashapp/stash.git
synced 2025-12-16 20:07:05 +03:00
Convert legacy parsed date to UTC
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user