v0.0.577
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m7s

This commit is contained in:
Mike Schwörer 2025-05-18 21:42:18 +02:00
parent a93b93a3cd
commit 98c591b019
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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 {