Closed tjscollins closed 6 years ago
The following code:
(ns example.core (:require [cljs-time.format :as f])) (f/parse (f/formatter "MMMM dd, YYYY 'at' H:mm a") "July 1, 2017 at 10:00 am")
Does not work as expected. It does work for clj-time, but for cljs-time it throws an error:
error {:message "Quoted text not found", :data {:type :parse-error, :where :parse-quoted}} Error: Quoted text not found
Error: Quoted text not found
Not sure if there's supposed to a different format for quoting in cljs-time, but I assume it's supposed to work the same as clj-time.
Yes, this should work. Not sure why it doesn't to be honest, there are tests around quoted text (though admittedly they aren't that extensive).
The following code:
Does not work as expected. It does work for clj-time, but for cljs-time it throws an error:
Not sure if there's supposed to a different format for quoting in cljs-time, but I assume it's supposed to work the same as clj-time.