Skip to content

Commit 1195f3b

Browse files
committed
Update 'TestConvertEpochStringToHumanReadable' test to work in all the timezones.
1 parent 29bef8d commit 1195f3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/kimia/main_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ func TestConvertEpochStringToHumanReadable(t *testing.T) {
172172
},
173173
{
174174
name: "large epoch (far future)",
175-
input: "4102444800", // Around 2100
175+
input: "4260211200", // 2105-01-01 00:00 UTC (always 210x in all timezones)
176176
checkYear: true,
177-
expectedYear: "20", // 2099 or 2100 depending on timezone
177+
expectedYear: "210", // 2105 contains "210" in all timezones
178178
},
179179
}
180180

0 commit comments

Comments
 (0)