Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
Signed-off-by: Dinu John <86094133+dinujoh@users.noreply.github.com>
  • Loading branch information
dinujoh committed Nov 15, 2024
1 parent 41fd70f commit c61618e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private Long handleDate(final String dateStr) {
try {
// Handle MySQL zero date special case
if ("0000-00-00".equals(dateStr)) {
return null; // or return a specific default value
return null;
}

// Try parsing as Unix timestamp first
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ private static Stream<Arguments> provideTimeTestCases() {
Arguments.of("52200123",
getEpochMillis(1970, 1, 1, 14, 30, 0, 123456000)),
Arguments.of("16:30:00.000000",
getEpochMillis(1970, 1, 1, 16, 30, 0, 0))
getEpochMillis(1970, 1, 1, 16, 30, 0, 0)),
Arguments.of("07:17:00.456789",
getEpochMillis(1970, 1, 1, 7, 17, 0, 456789000))
);
}

Expand Down

0 comments on commit c61618e

Please sign in to comment.