summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2009-07-10 00:36:02 +0000
committerivan <ivan>2009-07-10 00:36:02 +0000
commitbe5a76006fb0d317c667c0432737284146b2ae45 (patch)
tree7874419f5e9925de6cb0e9dbd87ff0d5580bc953 /FS
parentf1f09d882038f5b9950598be62d94fc1486596d3 (diff)
fix sansay CDR import to ignore "NA" in dates, RT#5495
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cdr.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index 77f3ec6dc..723123a76 100644
--- 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);