Skip to content

Commit 14d6e4b

Browse files
author
James Cor
committed
fixing tests
1 parent 348786d commit 14d6e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/planbuilder/dateparse/date_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ func TestConversionFailure(t *testing.T) {
8888
}{
8989
// with strict mode with NO_ZERO_IN_DATE,NO_ZERO_DATE enabled, these tests result NULL
9090
{"no_year", "Jan 3", "%b %e", time.Date(0, time.January, 3, 0, 0, 0, 0, time.UTC), ""},
91-
{"no_day", "Jan 2000", "%b %y", time.Date(2019, time.December, 31, 0, 0, 0, 0, time.UTC), ""},
92-
{"day_of_month_and_day_of_year", "Jan 3, 100 2000", "%b %e, %j %y", time.Date(2020, time.April, 9, 0, 0, 0, 0, time.UTC), ""},
91+
{"no_day", "Jan 2000", "%b %Y", time.Date(2000, time.January, 0, 0, 0, 0, 0, time.UTC), ""},
92+
{"day_of_month_and_day_of_year", "Jan 3, 100 2000", "%b %e, %j %Y", time.Date(2000, time.April, 9, 0, 0, 0, 0, time.UTC), ""},
9393

9494
{"24hour_time_with_pm", "May 3, 10:23:00 PM 2000", "%b %e, %H:%i:%s %p %Y", nil, "cannot use 24 hour time (H) with AM/PM (p)"},
9595
{"specifier_end_of_line", "Jan 3", "%b %e %", nil, `"%" found at end of format string`},

0 commit comments

Comments
 (0)