Fixing import

This commit is contained in:
Finn 2019-07-12 16:02:19 +01:00
parent 8f44e26a6d
commit 275b9cef46
No known key found for this signature in database
GPG key ID: 7455B4B17685B598

View file

@ -45,7 +45,8 @@ sub _row_to_result {
} }
my $date_formatter = DateTime::Format::Strptime->new( my $date_formatter = DateTime::Format::Strptime->new(
pattern => '%Y/%m/%d' pattern => '%m/%d/%Y',
time_zone => 'Europe/London'
); );
my $paid_date = ( $row->{paid_date} ? $date_formatter->parse_datetime($row->{paid_date}) : DateTime->today ); my $paid_date = ( $row->{paid_date} ? $date_formatter->parse_datetime($row->{paid_date}) : DateTime->today );