Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cljs-time.coerce/to-local-date-time does not support years > 9999 unlike clj-time #147

Open
hoxu opened this issue May 20, 2022 · 0 comments

Comments

@hoxu
Copy link

hoxu commented May 20, 2022

cljs.user=> (cljs-time.coerce/to-local-date-time "20220-05-20T00:00:00.000")
nil
cljs.user=> (cljs-time.coerce/to-local-date-time "2022-05-20T00:00:00.000")
#inst "2022-05-20T00:00:00.000-00:00"

On the other hand, clj-time.coerce/to-local-date-time does:

user=> ((juxt type identity) (clj-time.coerce/to-local-date-time "20220-05-20T00:00:00.000"))
[org.joda.time.LocalDateTime "20220-05-20T00:00:00.000"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant