Tell the user how to specify a datetime.
Also correct a mistake in the error message for invalid datetime formats.
This commit is contained in:
parent
74980bce70
commit
0813ad6978
2 changed files with 3 additions and 3 deletions
|
|
@ -55,7 +55,7 @@
|
||||||
#:font-family "monospace")
|
#:font-family "monospace")
|
||||||
(form-horizontal-control
|
(form-horizontal-control
|
||||||
"Base datetime" query-parameters
|
"Base datetime" query-parameters
|
||||||
#:help-text "The date and time to compare from."
|
#:help-text "The date and time to compare from. The required format is YYYY-MM-DD HH:MM:SS"
|
||||||
#:font-family "monospace")
|
#:font-family "monospace")
|
||||||
(form-horizontal-control
|
(form-horizontal-control
|
||||||
"Target branch" query-parameters
|
"Target branch" query-parameters
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
#:font-family "monospace")
|
#:font-family "monospace")
|
||||||
(form-horizontal-control
|
(form-horizontal-control
|
||||||
"Target datetime" query-parameters
|
"Target datetime" query-parameters
|
||||||
#:help-text "The date and time to compare to."
|
#:help-text "The date and time to compare to. The required format is YYYY-MM-DD HH:MM:SS"
|
||||||
#:font-family "monospace")))
|
#:font-family "monospace")))
|
||||||
(else
|
(else
|
||||||
'())))
|
'())))
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,7 @@
|
||||||
(lambda (key . args)
|
(lambda (key . args)
|
||||||
(make-invalid-query-parameter
|
(make-invalid-query-parameter
|
||||||
s
|
s
|
||||||
"Unable to parse date, please use YYYY-MM-DD HH-MM-SS as the format."))))
|
"Unable to parse date, please use YYYY-MM-DD HH:MM:SS as the format."))))
|
||||||
|
|
||||||
(define (parse-checkbox-value s)
|
(define (parse-checkbox-value s)
|
||||||
(string=? s "on"))
|
(string=? s "on"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue