Convert legacy parsed date to UTC

This commit is contained in:
WithoutPants
2023-11-27 13:05:29 +11:00
committed by GitHub
parent 11a1e49292
commit 910ff27730

View File

@@ -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