Skip to content

Commit

Permalink
oops, didn't have to remove this
Browse files Browse the repository at this point in the history
  • Loading branch information
salexfo committed Mar 1, 2020
1 parent b7f8451 commit 981ebc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/mvnsearch/h2/mysql/DateTimeFunctions.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ public static Date date(Timestamp date) throws Exception {
public static LocalDateTime utcTimestamp() {
return ZonedDateTime.now(ZoneId.of("UTC")).toLocalDateTime();
}

public static LocalTime utcTime() {
return ZonedDateTime.now(ZoneId.of("UTC")).toLocalTime();
}

public static LocalDate utcDate() {
return ZonedDateTime.now(ZoneId.of("UTC")).toLocalDate();
Expand Down

0 comments on commit 981ebc5

Please sign in to comment.