summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-27 23:13:16 +0300
committerPaul Buetow <paul@buetow.org>2025-06-27 23:13:16 +0300
commite527f6084f4a3f592d06c25e34e08cc3769706a8 (patch)
treed72ea41cc07f8501ccce7d44ffa3c30f4448941b
parent3654835ece8616c4aa65dc68a4ac7918c0d38d3c (diff)
fix unit test
-rw-r--r--internal/task/stats_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/task/stats_test.go b/internal/task/stats_test.go
index fddbd69..da552ce 100644
--- a/internal/task/stats_test.go
+++ b/internal/task/stats_test.go
@@ -10,8 +10,8 @@ func TestStats(t *testing.T) {
tasks := []Task{
{Description: "t1"},
{Description: "t2", Start: "20240101T000000Z"},
- {Description: "t3", Due: now.Add(-time.Hour).Format("20060102T150405Z")},
- {Description: "t4", Start: "20240101T000000Z", Due: now.Add(-time.Hour).Format("20060102T150405Z")},
+ {Description: "t3", Due: now.Add(-time.Hour).UTC().Format("20060102T150405Z")},
+ {Description: "t4", Start: "20240101T000000Z", Due: now.Add(-time.Hour).UTC().Format("20060102T150405Z")},
}
if TotalTasks(tasks) != 4 {