mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Restrict proposals for due date
Avoid dates too far in the future.
This commit is contained in:
@ -53,6 +53,9 @@ object Duration {
|
||||
def days(n: Long): Duration =
|
||||
apply(JDur.ofDays(n))
|
||||
|
||||
def years(n: Long): Duration =
|
||||
days(n * 365)
|
||||
|
||||
def nanos(n: Long): Duration =
|
||||
Duration(n)
|
||||
|
||||
|
Reference in New Issue
Block a user