From 54194471a8df367e43110ed6aa5a1d37254d2935 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Mon, 28 Jul 2008 18:48:25 +0000 Subject: [PATCH] preserve dates we can't parse; we'll punt to postgres --- unicorn_patron_xml2text.pl | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) 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) -- 1.7.2.5