diff options
author | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2012-08-22 15:44:06 +0200 |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2012-08-22 18:42:25 +0200 |
commit | a7e28264b73a2a25d17624ede419c9f95f9ddb1a (patch) | |
tree | 5ba1b6bd3d7187c1fad9aca9fdb7fae023a45e5f | |
parent | 2615b78317409f7971b340f907eaface423e107f (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-x | index.pl | 2 | ||||
-rw-r--r-- | reltest-form.conf | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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 |