From 256eb6cb9155a85a4adfa18fbab41aa8e044cc72 Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Tue, 13 Aug 2019 09:38:17 +0300 Subject: [PATCH] Fixed h2 epoch conversion sql --- .../src/main/java/com/djrapitops/plan/db/sql/parsing/Sql.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/db/sql/parsing/Sql.java b/Plan/common/src/main/java/com/djrapitops/plan/db/sql/parsing/Sql.java index ffbbed7c8..c52f91547 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/db/sql/parsing/Sql.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/db/sql/parsing/Sql.java @@ -84,7 +84,7 @@ public interface Sql { @Override public String epochSecondFromDate(String sql) { - return "DATEDIFF('SECOND', " + sql + ", DATE '1970-01-01')"; + return "DATEDIFF('SECOND', DATE '1970-01-01', " + sql + ')'; } @Override