projects
/
migration-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4d6985a
)
preserve dates we can't parse; we'll punt to postgres
author
Jason Etheridge
<jason@esilibrary.com>
Mon, 28 Jul 2008 18:48:25 +0000 (18:48 +0000)
committer
Jason Etheridge
<jason@esilibrary.com>
Mon, 28 Jul 2008 18:48:25 +0000 (18:48 +0000)
unicorn_patron_xml2text.pl
patch
|
blob
|
history
diff --git
a/unicorn_patron_xml2text.pl
b/unicorn_patron_xml2text.pl
index
e075fb6
..
7e052c2
100755
(executable)
--- 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)