From d984bd1297a4c635a488a7903e914470e8d24c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sw=C3=A4rd?= Date: Wed, 16 Oct 2024 13:35:25 +0200 Subject: [PATCH] Reverse time parsing arguments (#75) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniel Swärd --- dsp/control/control.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dsp/control/control.go b/dsp/control/control.go index d8d4968..2519e30 100644 --- a/dsp/control/control.go +++ b/dsp/control/control.go @@ -332,11 +332,11 @@ func processDataset(dsp shared.Dataset) *dspv1alpha1.Dataset { Language: v.Language, } } - issued, err := time.Parse(dsp.Issued, time.RFC3339) + issued, err := time.Parse(time.RFC3339, dsp.Issued) if err != nil { issued = time.Unix(0, 0).UTC() } - modified, err := time.Parse(dsp.Modified, time.RFC3339) + modified, err := time.Parse(time.RFC3339, dsp.Modified) if err != nil { modified = time.Unix(0, 0).UTC() }