djblue / portal

A clojure tool to navigate through your data.

Home Page:https://djblue.github.io/portal/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

portal display for Dates is incorrect

CharlotteNewcomer opened this issue · comments

When tapping date objects portal displays the date incorrectly. Here are some examples:

#inst "0001" ;; => #inst "0001-01-01T00:00:00.000-00:00"
(tap> #inst "0001") ;; [portal displays]: #inst "0000-12-30T00:00:00.000Z"

#inst "1000" ;; => #inst "1000-01-01T00:00:00.000-00:00"
(tap> #inst "1000") ;; [portal displays]: #inst "1000-01-06T00:00:00.000Z"

That's actually a known (but not documented) difference between Clojure and Clojurescript date interpretation.
clojure/clojurescript-site#367

I think for now I'll add this to the Portal documentation as a limitation.