You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql-timestamp now fails on trying to convert a long to an integer:
e.g. (time/sql-timestamp 1498582624546) results in Value out of range for int: 1498582624546
In a previous version, 0.2.2, the expected behavior for longs was in place, but it was lost when I upgrade to 0.3.0. The actual regression may have been introduced in an earlier version, that is just the version I upgraded to as it is presently the latest release.
Be aware that sql-timestamp uses java.sql.Timestamp/valueOf which will use the default timezone of the JVM to remove the offset, hence the (j/zone-id) above.
I'll think on how to allow going from Instant -> sql.Timestamp.
EDIT: mentioned the breaking change in the CHANGELOG
Activity
dm3 commentedon Jun 27, 2017
@rplevy - sorry, seems I've changed
to-sql-timestampas well asto-sql-datebut didn't mention the former one in the breaking changes for 0.3.0.You can still get a
sql-timestampout of an epoch millis by doing:Be aware that
sql-timestampusesjava.sql.Timestamp/valueOfwhich will use the default timezone of the JVM to remove the offset, hence the(j/zone-id)above.I'll think on how to allow going from Instant -> sql.Timestamp.
EDIT: mentioned the breaking change in the CHANGELOG
dm3 commentedon Dec 27, 2017
Added
instant->sql-timestampto construct ajava.sql.Timestampout of an instant/long.