added worktime base to work time calculations
Some checks failed
Tests / Run Go Tests (push) Failing after 1m4s

This commit is contained in:
2025-10-31 23:57:42 +01:00
parent ac59d2642f
commit 7e5eaebca9
4 changed files with 171 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ func FormatDuration(d time.Duration) string {
// Converts duration to string
func FormatDurationFill(d time.Duration, fill bool) string {
return fmt.Sprintf("%.1f", d.Hours())
hours := int(d.Abs().Hours())
minutes := int(d.Abs().Minutes()) % 60
sign := ""