Every action kind of works.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user