From 98c591b019c0ceaebc97c103f0c21ed51ff2866d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sun, 18 May 2025 21:42:18 +0200 Subject: [PATCH] v0.0.577 --- goextVersion.go | 4 ++-- timeext/duration.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/goextVersion.go b/goextVersion.go index 5580c8b..744f353 100644 --- a/goextVersion.go +++ b/goextVersion.go @@ -1,5 +1,5 @@ package goext -const GoextVersion = "0.0.576" +const GoextVersion = "0.0.577" -const GoextVersionTimestamp = "2025-05-18T14:26:24+0200" +const GoextVersionTimestamp = "2025-05-18T21:42:18+0200" diff --git a/timeext/duration.go b/timeext/duration.go index 3a5ee65..956e06c 100644 --- a/timeext/duration.go +++ b/timeext/duration.go @@ -69,15 +69,15 @@ func FormatNaturalDurationEnglish(iv time.Duration) string { func FormatDurationGerman(iv time.Duration) string { if sec := int64(iv.Seconds()); sec < 180 { - return fmt.Sprintf("%d s", sec) + return fmt.Sprintf("%ds", sec) } if mins := int64(iv.Minutes()); mins < 180 { - return fmt.Sprintf("%d min", mins) + return fmt.Sprintf("%dmin", mins) } if hours := int64(iv.Hours()); hours < 72 { - return fmt.Sprintf("%d h", hours) + return fmt.Sprintf("%dh", hours) } if days := int64(iv.Hours() / 24.0); days < 21 {