Skip to content

Commit

Permalink
(#3012) Trim times to milliseconds on ingestion
Browse files Browse the repository at this point in the history
  • Loading branch information
squaregoldfish committed Nov 19, 2024
1 parent 2774e54 commit 1aa5eb9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.time.LocalTime;
import java.time.ZoneOffset;
import java.time.format.DateTimeParseException;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
Expand Down Expand Up @@ -832,7 +833,7 @@ public LocalDateTime getDateTime(LocalDateTime headerDate, List<String> line)
result = LocalDateTime.of(date, time);
}

return result;
return result.truncatedTo(ChronoUnit.MILLIS);
}

/**
Expand Down

0 comments on commit 1aa5eb9

Please sign in to comment.