From: Jason Etheridge Date: Mon, 28 Jul 2008 18:48:25 +0000 (+0000) Subject: preserve dates we can't parse; we'll punt to postgres X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=commitdiff_plain;h=54194471a8df367e43110ed6aa5a1d37254d2935 preserve dates we can't parse; we'll punt to postgres --- diff --git a/unicorn_patron_xml2text.pl b/unicorn_patron_xml2text.pl index e075fb6..7e052c2 100755 --- a/unicorn_patron_xml2text.pl +++ b/unicorn_patron_xml2text.pl @@ -1,7 +1,4 @@ #!/usr/bin/perl -# -# WARNING: This doesn't handle Rob's address-database-enhanced Patron XML format, with such things as Change of Address information -# use strict; use warnings; @@ -146,7 +143,7 @@ sub parse_date { } } - my $date; + my $date = $string; if ($y && $m && $d) { eval { $date = sprintf('%04d-%02d-%-2d',$y, $m, $d)