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()) }