mirror of
https://github.com/penpot/penpot.git
synced 2025-07-22 10:07:14 +02:00
✨ Notify library updates when really needed
This commit is contained in:
parent
568338ad68
commit
8a42a53522
32 changed files with 373 additions and 195 deletions
|
@ -22,12 +22,13 @@
|
|||
["date-fns/locale/ru" :default dateFnsLocalesRu]
|
||||
["date-fns/locale/tr" :default dateFnsLocalesTr]
|
||||
["date-fns/locale/zh-CN" :default dateFnsLocalesZhCn]
|
||||
["luxon" :as lxn]
|
||||
[app.common.data.macros :as dm]
|
||||
[app.common.time :as common-time]
|
||||
[app.util.object :as obj]
|
||||
[cuerdas.core :as str]))
|
||||
|
||||
(def DateTime lxn/DateTime)
|
||||
(def Duration lxn/Duration)
|
||||
(dm/export common-time/DateTime)
|
||||
(dm/export common-time/Duration)
|
||||
|
||||
(defprotocol ITimeMath
|
||||
(plus [_ o])
|
||||
|
@ -89,9 +90,7 @@
|
|||
:rfc2822 (.fromRFC2822 ^js DateTime s #js {:zone zone :setZone force-zone})
|
||||
:http (.fromHTTP ^js DateTime s #js {:zone zone :setZone force-zone})))))
|
||||
|
||||
(defn now
|
||||
[]
|
||||
(.local ^js DateTime))
|
||||
(dm/export common-time/now)
|
||||
|
||||
(defn utc-now
|
||||
[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue