tick icon indicating copy to clipboard operation
tick copied to clipboard

Trying to `format` an `inst` with a format string throws exception

Open dgr opened this issue 6 months ago • 0 comments

You can format an inst with no format string, but as soon as you add one, you get an exception:

user> (t/format (t/inst))
"Fri Aug 08 09:16:50 CDT 2025"
user> (t/format "HH:mm:ss" (t/inst))
Execution error (ClassCastException) at cljc.java-time.format.date-time-formatter/format (date_time_formatter.clj:39).
class java.util.Date cannot be cast to class java.time.temporal.TemporalAccessor (java.util.Date and java.time.temporal.TemporalAccessor are in module java.base of loader 'bootstrap')

Seems like Tick should handle this transparently.

dgr avatar Aug 08 '25 14:08 dgr