mirror of
https://github.com/penpot/penpot.git
synced 2026-02-25 05:45:53 +00:00
Fix wrong impl of datetime/format function.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user