projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
f1f09d8
)
fix sansay CDR import to ignore "NA" in dates, RT#5495
author
ivan
<ivan>
Fri, 10 Jul 2009 00:36:02 +0000
(
00:36
+0000)
committer
ivan
<ivan>
Fri, 10 Jul 2009 00:36:02 +0000
(
00:36
+0000)
FS/FS/cdr.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr.pm
b/FS/FS/cdr.pm
index
77f3ec6
..
723123a
100644
(file)
--- a/
FS/FS/cdr.pm
+++ b/
FS/FS/cdr.pm
@@
-752,6
+752,7
@@
sub _cdr_date_parse {
my %options = @_;
return '' unless length($date); #that's okay, it becomes NULL
+ return '' if $date eq 'NA'; #sansay
if ( $date =~ /^([a-z]{3})\s+([a-z]{3})\s+(\d{1,2})\s+(\d{1,2}):(\d{1,2}):(\d{1,2})\s+(\d{4})$/i && $7 > 1970 ) {
my $time = str2time($date);