From b46e8a74a7e89d5fa62a20cd1f6affa8adf10de4 Mon Sep 17 00:00:00 2001 From: Hamatoma Date: Wed, 26 Feb 2025 23:58:29 +0100 Subject: [PATCH] - Total summary --- CHANGELOG.md | 5 ++++- app/Helpers/ExportHelperLocal.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd56538..5adbae8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,10 @@ # V 0.2.8 ExportHelperLocal -- Total summary +- changed duration format + +# V 0.2.8 ExportHelperLocal +- Total summary # V 0.2.7 ExportHelperLocal - ExportHelperLocal: exportHoursAsCsv improved diff --git a/app/Helpers/ExportHelperLocal.php b/app/Helpers/ExportHelperLocal.php index 490d72d..f8c3f96 100644 --- a/app/Helpers/ExportHelperLocal.php +++ b/app/Helpers/ExportHelperLocal.php @@ -8,7 +8,7 @@ class ExportHelperLocal { public static function formatDuration(int $duration): string { - $rc = sprintf("%d:%02d", intval($duration / 60), intval($duration % 60)); + $rc = sprintf("%dh%02dm", intval($duration / 60), intval($duration % 60)); return $rc; } public static function exportHoursAsCsv(array &$records): string -- 2.39.5