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