Permalink
Browse files

Fixed date formatting for santandercc module

  • Loading branch information...
wertarbyte committed Oct 4, 2009
1 parent 5090078 commit 6ff0a0665935b0beea6a3f179b6de8462285377d
Showing with 2 additions and 0 deletions.
  1. +2 −0 Finance/SantanderCC.pm
View
@@ -65,6 +65,8 @@ sub extract_transactions {
} else {
$receipt = $cells[0]->as_trimmed_text();
#push @book, { md5 => Digest::MD5->md5_hex($receipt.$booked.$desc.$value), booked => $booked, desc => $desc, amount => $value, receipt => $receipt};
+ $booked =~ s/([0-9]{2})\.([0-9]{2})\.([0-9]{4})/\3-\2-\1/;
+ $receipt =~ s/([0-9]{2})\.([0-9]{2})\.([0-9]{4})/\3-\2-\1/;
push @book, $self->construct_transaction( $receipt, $booked, $value, $desc );
}
}

0 comments on commit 6ff0a06

Please sign in to comment.