From 8edc067a3be0ef4bfd85473aadc09c95c503596d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Wed, 21 Feb 2024 18:40:42 +0100 Subject: [PATCH] v0.0.394 --- goextVersion.go | 4 ++-- rfctime/time.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index 36cd72f..1b97db5 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.393" +const GoextVersion = "0.0.394" -const GoextVersionTimestamp = "2024-02-21T18:33:18+0100" +const GoextVersionTimestamp = "2024-02-21T18:40:42+0100" diff --git a/rfctime/time.go b/rfctime/time.go index 27fb583..d5aa4f1 100644 --- a/rfctime/time.go +++ b/rfctime/time.go @@ -21,11 +21,11 @@ func (t Time) Serialize() string { func (t Time) SerializeShort() string { if t.NanoSecond == 0 && t.Second == 0 { - return fmt.Sprintf("%04d:%02d", t.Hour, t.Minute) + return fmt.Sprintf("%02d:%02d", t.Hour, t.Minute) } else if t.NanoSecond == 0 { - return fmt.Sprintf("%04d:%02d:%02d", t.Hour, t.Minute, t.Second) + return fmt.Sprintf("%02d:%02d:%02d", t.Hour, t.Minute, t.Second) } else { - return fmt.Sprintf("%04d:%02d:%02d.%09d", t.Hour, t.Minute, t.Second, t.NanoSecond) + return fmt.Sprintf("%02d:%02d:%02d.%09d", t.Hour, t.Minute, t.Second, t.NanoSecond) } }