mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +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
|
// 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
|
||||||
|
|||||||
Reference in New Issue
Block a user