Skip to content

Commit

Permalink
Fixed time format asserstion failing due to daylight saving time
Browse files Browse the repository at this point in the history
  • Loading branch information
hermya committed Oct 19, 2024
1 parent 195150b commit 4359a4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void testAppendLog() {
@Test
public void testFormatTime() {
Assert.assertEquals("2019-06-15 12:13:14.000",
EagleEyeCoreUtils.formatTime(1560600794000L - TimeZone.getDefault().getRawOffset()));
EagleEyeCoreUtils.formatTime(1560600794000L - TimeZone.getDefault().getRawOffset() - TimeZone.getDefault().getDSTSavings()));
}

@Test
Expand Down

0 comments on commit 4359a4e

Please sign in to comment.