summaryrefslogtreecommitdiff
path: root/internal/timezone/timezone_test.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <f@miniflux.net> 2024-03-24 12:56:02 -0700
committerGravatar Frédéric Guillot <f@miniflux.net> 2024-03-24 13:25:02 -0700
commite3b3c40c287c4496c6df48f00e930d4f3d544506 (patch)
tree0c23ebe481c5be263fd9f6ee37f6ac91dc838a52 /internal/timezone/timezone_test.go
parent068790fc19855b9d91e5bc225473434d9aa864b5 (diff)
downloadv2-e3b3c40c287c4496c6df48f00e930d4f3d544506.tar.gz
v2-e3b3c40c287c4496c6df48f00e930d4f3d544506.tar.zst
v2-e3b3c40c287c4496c6df48f00e930d4f3d544506.zip
timezone: make sure the tests pass when the timezone database is not installed on the host
Diffstat (limited to '')
-rw-r--r--internal/timezone/timezone_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/timezone/timezone_test.go b/internal/timezone/timezone_test.go
index dc80c22f..49957b7a 100644
--- a/internal/timezone/timezone_test.go
+++ b/internal/timezone/timezone_test.go
@@ -6,6 +6,9 @@ package timezone // import "miniflux.app/v2/internal/timezone"
import (
"testing"
"time"
+
+ // Make sure these tests pass when the timezone database is not installed on the host system.
+ _ "time/tzdata"
)
func TestNow(t *testing.T) {