Every action kind of works.

This commit is contained in:
2025-03-05 21:02:50 -08:00
parent 59d48342ea
commit d19a2988fd
5 changed files with 240 additions and 165 deletions

View File

@@ -210,11 +210,11 @@
(coerce/to-date-time #inst "2000-01-01"))
true))]
[:fn
{:error/message "Invalid date"}
{:error/message "Can not look more than four years into the future."}
(fn [d]
(if d
(time/before? (coerce/to-date-time d)
(time/plus (time/now) (time/years 2)))
(time/plus (time/now) (time/years 4)))
true))]]))
(def date-transformer