0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-04 19:11:20 -05:00

Fix wrong impl of datetime/format function.

This commit is contained in:
Andrey Antukh 2016-08-30 18:28:46 +03:00
parent ce8987f8b5
commit 8bcb373d07
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -72,7 +72,8 @@
"
([v] (format v :iso))
([v fmt]
(let [vm (js/moment v)]
{:pre [(datetime? v)]}
(let [vm (js/moment (.-v v))]
(case fmt
:unix (.unix vm)
:offset (.valueOf vm)