KamoCRM

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

Fixkamo-shared-library
Shipped
7 ஜூலை, 2026 அன்று 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?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing