aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2020-12-19 17:38:36 -0500
committerLeo Famulari <leo@famulari.name>2020-12-19 17:47:53 -0500
commit0813ad6978a8c1d6126d8a027db82304e73c8546 (patch)
treea5e78fb0bdf9a3effc8c36ad765d13bb94d44e14 /guix-data-service
parent74980bce707c687730ed78b0798419f61bfa7727 (diff)
downloaddata-service-0813ad6978a8c1d6126d8a027db82304e73c8546.tar
data-service-0813ad6978a8c1d6126d8a027db82304e73c8546.tar.gz
Tell the user how to specify a datetime.
Also correct a mistake in the error message for invalid datetime formats.
Diffstat (limited to 'guix-data-service')
-rw-r--r--guix-data-service/web/compare/html.scm4
-rw-r--r--guix-data-service/web/query-parameters.scm2
2 files changed, 3 insertions, 3 deletions
diff --git a/guix-data-service/web/compare/html.scm b/guix-data-service/web/compare/html.scm
index cf04d3b..23a63c0 100644
--- a/guix-data-service/web/compare/html.scm
+++ b/guix-data-service/web/compare/html.scm
@@ -55,7 +55,7 @@
#:font-family "monospace")
(form-horizontal-control
"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")
(form-horizontal-control
"Target branch" query-parameters
@@ -64,7 +64,7 @@
#:font-family "monospace")
(form-horizontal-control
"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")))
(else
'())))
diff --git a/guix-data-service/web/query-parameters.scm b/guix-data-service/web/query-parameters.scm
index 4572ff3..6be4848 100644
--- a/guix-data-service/web/query-parameters.scm
+++ b/guix-data-service/web/query-parameters.scm
@@ -217,7 +217,7 @@
(lambda (key . args)
(make-invalid-query-parameter
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)
(string=? s "on"))