dm3/clojure.java-time

Extra leading hyphen in month-day output

Jacob-Kroeze opened this issue · 2 comments

(two-field-entity MonthDay

(str (t/month-day)) ;; => "--02-04"

dm3 commented

I'm not sure what's the reason for this, but this is how the toString is defined in Java:

user=> (MonthDay/now)
#object[java.time.MonthDay 0x73fc8857 "--02-06"]

I don't think we should change the behaviour for this specific time entity given all others use the native Java toString. What do you think?

dm3 commented

Closing as not actionable.