[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: Tell the user how to specify a datetime.
From: |
Leo Famulari |
Subject: |
branch master updated: Tell the user how to specify a datetime. |
Date: |
Sat, 19 Dec 2020 17:53:26 -0500 |
This is an automated email from the git hooks/post-receive script.
lfam pushed a commit to branch master
in repository data-service.
The following commit(s) were added to refs/heads/master by this push:
new 0813ad6 Tell the user how to specify a datetime.
0813ad6 is described below
commit 0813ad6978a8c1d6126d8a027db82304e73c8546
Author: Leo Famulari <leo@famulari.name>
AuthorDate: Sat Dec 19 17:38:36 2020 -0500
Tell the user how to specify a datetime.
Also correct a mistake in the error message for invalid datetime formats.
---
guix-data-service/web/compare/html.scm | 4 ++--
guix-data-service/web/query-parameters.scm | 2 +-
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"))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: Tell the user how to specify a datetime.,
Leo Famulari <=