summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Storm-Olsen <marius.storm-olsen@nokia.com>2012-08-22 15:44:06 +0200
committerMarius Storm-Olsen <marius.storm-olsen@nokia.com>2012-08-22 18:42:25 +0200
commita7e28264b73a2a25d17624ede419c9f95f9ddb1a (patch)
tree5ba1b6bd3d7187c1fad9aca9fdb7fae023a45e5f
parent2615b78317409f7971b340f907eaface423e107f (diff)
Fix date handling
Apparently formbuilder expects MM/DD/YYYY for its dates. Change-Id: I9f169e64962569cc75120eb82b5f067bb87181c3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rwxr-xr-xindex.pl2
-rw-r--r--reltest-form.conf4
2 files changed, 3 insertions, 3 deletions
diff --git a/index.pl b/index.pl
index 69d4f07..6a29194 100755
--- a/index.pl
+++ b/index.pl
@@ -62,7 +62,7 @@ if ($form->submitted && $form->validate) {
} else {
# Auto-fill with today's date
- my $now = strftime("%d/%m/%Y", localtime);
+ my $now = strftime("%m/%d/%Y", localtime);
$form->field(name => 'report_date',
value => $now);
$form->field(name => 'package_date',
diff --git a/reltest-form.conf b/reltest-form.conf
index 2623e10..26b2eaa 100644
--- a/reltest-form.conf
+++ b/reltest-form.conf
@@ -17,7 +17,7 @@ fields:
size: 10
required: 1
validate: DATE
- comment: <i>DD/MM/YYYY</i>
+ comment: <i>MM/DD/YYYY</i>
report_name:
label: Reporters Name
@@ -31,7 +31,7 @@ fields:
size: 10
required: 1
validate: DATE
- comment: <i>DD/MM/YYYY</i>
+ comment: <i>MM/DD/YYYY</i>
package_name:
label: Package name