preserve dates we can't parse; we'll punt to postgres
authorJason Etheridge <jason@esilibrary.com>
Mon, 28 Jul 2008 18:48:25 +0000 (18:48 +0000)
committerJason Etheridge <jason@esilibrary.com>
Mon, 28 Jul 2008 18:48:25 +0000 (18:48 +0000)
unicorn_patron_xml2text.pl

index e075fb6..7e052c2 100755 (executable)
@@ -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)