DbNow() cast now()->::timestamp (TIMESTAMPTZ->Instant broke LocalDateTime)

Fixkamo-shared-library
Shipped
July 7, 2026 at 12:27 AM UTC
Author
Kamo
Commit
800fb5a

SELECT now() returns TIMESTAMPTZ, which Hibernate materializes as java.time.Instant and cannot cast to the declared LocalDateTime return type — throwing ClassCastException on every lock acquire/heartbeat/sweep and every task create/update. Casting to now()::timestamp yields a TIMESTAMP (UTC wall-clock) that maps cleanly to LocalDateTime.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing