Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Added "datetime_format" URL parameter to handle jdbc date and time fo…
Browse files Browse the repository at this point in the history
…rmatting with new engine
  • Loading branch information
cip999 committed Aug 22, 2021
1 parent 60da9ed commit ea616d8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class ExprTimestampValue extends AbstractExprValue {
.ofPattern("yyyy-MM-dd");
private final Instant timestamp;

private String datetimeFormat;
private String datetimeFormat = ALWAYS_INCLUDE_TIME;

private static final DateTimeFormatter FORMATTER_VARIABLE_MICROS;
private static final int MIN_FRACTION_SECONDS = 0;
Expand All @@ -77,8 +77,6 @@ public class ExprTimestampValue extends AbstractExprValue {
* Constructor.
*/
public ExprTimestampValue(String timestamp) {
this.datetimeFormat = ALWAYS_INCLUDE_TIME;

try {
this.timestamp = LocalDateTime.parse(timestamp,
ExprDateFormatters.TOLERANT_PARSER_DATE_TIME_FORMATTER)
Expand Down

0 comments on commit ea616d8

Please sign in to comment.