diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-04-16 09:21:57 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-04-16 09:21:57 +0100 |
commit | 461430079384a10fb9e433dcc7581af2a56c0fac (patch) | |
tree | b956a292314c131d7142ccfacebdbf567de5632f /perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm | |
parent | 7acc080371d97d6958546349babd7701654fe2b2 (diff) |
[Oxfordshire] Fix admin exor download page.
07906f40 changed the HTML date input form, but did
not update the server parsing of the format.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm b/perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm index bdeecc1a3..d965dd8f2 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/ExorDefects.pm @@ -43,7 +43,7 @@ sub download : Path('download') : Args(0) { $c->detach( '/page_error_404_not_found', [] ); } - my $parser = DateTime::Format::Strptime->new( pattern => '%d/%m/%Y' ); + my $parser = DateTime::Format::Strptime->new( pattern => '%Y-%m-%d' ); my $start_date = $parser-> parse_datetime ( $c->get_param('start_date') ); my $end_date = $parser-> parse_datetime ( $c->get_param('end_date') ) ; my $one_day = DateTime::Duration->new( days => 1 ); |