clojure.java-time
clojure.java-time copied to clipboard
Canadian locale doesn't support AM/PM?
(local-date-time "M/d/yyyy h:mm:ss a" "1/3/2022 3:58:29 PM")
Execution error (DateTimeParseException) at java.time.format.DateTimeFormatter/parseResolved0 (DateTimeFormatter.java:2051).
Text '1/3/2022 3:58:29 PM' could not be parsed at index 17
Some sleuthing in the Clojurians slack discovered that it has to do with the Canadian locale (link)
Can you post your solution? I'm guessing you followed this advice?
henryw374: Set the locale on the formatter itself rather than relying on ambient default