Switch to bind Instants as strings instead of timestamps - seems to fix some timezone issues.

This commit is contained in:
2023-03-13 10:41:49 -05:00
parent 33f4c1235a
commit ec05f7ab7e

View File

@ -685,7 +685,7 @@ public class QueryManager
}
else if(value instanceof Double d)
{
bindParam(statement, index, d.doubleValue());
bindParam(statement, index, d);
return (1);
}
else if(value instanceof String s)
@ -739,9 +739,7 @@ public class QueryManager
}
else if(value instanceof Instant i)
{
long epochMillis = i.toEpochMilli();
Timestamp timestamp = new Timestamp(epochMillis);
statement.setTimestamp(index, timestamp);
statement.setString(index, i.toString());
return (1);
}
else if(value instanceof LocalDate ld)