From 910ff27730d90ce8e37a8492bf2b5d6f0c9e8459 Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Mon, 27 Nov 2023 13:05:29 +1100 Subject: [PATCH] Convert legacy parsed date to UTC --- pkg/pkg/pkg.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/pkg/pkg.go b/pkg/pkg/pkg.go index 570f42f5b..7c2e734ef 100644 --- a/pkg/pkg/pkg.go +++ b/pkg/pkg/pkg.go @@ -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