Notify library updates when really needed

This commit is contained in:
Andrés Moya 2023-05-04 09:34:38 +02:00
parent 568338ad68
commit 8a42a53522
32 changed files with 373 additions and 195 deletions

View file

@ -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
[]