Skip to content

Commit 9f8aadb

Browse files
committed
Set timezone to UTC in TestSnapshotVersion
Closes: https://bugs.debian.org/966674
1 parent 5570a05 commit 9f8aadb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

version_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ func gitCmdOrFatal(t *testing.T, tempdir string, arg ...string) {
1919
}
2020

2121
func TestSnapshotVersion(t *testing.T) {
22+
os.Setenv("TZ", "UTC")
23+
defer os.Unsetenv("TZ")
24+
2225
tempdir, err := ioutil.TempDir("", "dh-make-golang")
2326
if err != nil {
2427
t.Fatalf("Could not create temp dir: %v", err)

0 commit comments

Comments
 (0)