mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
Fix wrong impl of datetime/format function.
This commit is contained in:
parent
ce8987f8b5
commit
8bcb373d07
@ -72,7 +72,8 @@
|
|||||||
"
|
"
|
||||||
([v] (format v :iso))
|
([v] (format v :iso))
|
||||||
([v fmt]
|
([v fmt]
|
||||||
(let [vm (js/moment v)]
|
{:pre [(datetime? v)]}
|
||||||
|
(let [vm (js/moment (.-v v))]
|
||||||
(case fmt
|
(case fmt
|
||||||
:unix (.unix vm)
|
:unix (.unix vm)
|
||||||
:offset (.valueOf vm)
|
:offset (.valueOf vm)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user