Skip to content

Commit

Permalink
Fix time zone assertion failing during DST
Browse files Browse the repository at this point in the history
  • Loading branch information
adlio committed Mar 25, 2022
1 parent cfb349d commit bc83524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func TestMySQLTimeScanner(t *testing.T) {
if err != nil {
t.Error(err)
}
assertZonesMatch(t, time.Now(), v.Value)
assertZonesMatch(t, time.Date(2021, 1, 1, 18, 19, 20, 0, time.Local), v.Value)
if expected.Unix() != v.Value.Unix() {
t.Errorf("Expected %s, got %s", expected.Format(time.RFC3339), v.Value.Format(time.RFC3339))
}
Expand Down

0 comments on commit bc83524

Please sign in to comment.