From c1c8c64c769b5344e68f70426953db00c7a7bb67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sun, 10 Mar 2024 16:44:21 +0100 Subject: [PATCH] v0.0.406 bf --- goextVersion.go | 4 ++-- rfctime/date.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index 35ecc49..45a97df 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.405" +const GoextVersion = "0.0.406" -const GoextVersionTimestamp = "2024-03-10T15:28:26+0100" +const GoextVersionTimestamp = "2024-03-10T16:44:21+0100" diff --git a/rfctime/date.go b/rfctime/date.go index c2d3a47..85caf2b 100644 --- a/rfctime/date.go +++ b/rfctime/date.go @@ -214,11 +214,11 @@ func (t *Date) ParseString(v string) error { if err != nil { return errors.New("invalid date format: " + v + ": " + err.Error()) } - month, err := strconv.ParseInt(split[0], 10, 32) + month, err := strconv.ParseInt(split[1], 10, 32) if err != nil { return errors.New("invalid date format: " + v + ": " + err.Error()) } - day, err := strconv.ParseInt(split[0], 10, 32) + day, err := strconv.ParseInt(split[2], 10, 32) if err != nil { return errors.New("invalid date format: " + v + ": " + err.Error()) }