[freeside-commits] freeside/FS/FS cdr.pm,1.47,1.48
Ivan,,,
ivan at wavetail.420.am
Thu Jul 9 17:36:05 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv18171
Modified Files:
cdr.pm
Log Message:
fix sansay CDR import to ignore "NA" in dates, RT#5495
Index: cdr.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cdr.pm,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- cdr.pm 10 Jul 2009 00:00:37 -0000 1.47
+++ cdr.pm 10 Jul 2009 00:36:02 -0000 1.48
@@ -752,6 +752,7 @@
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);
More information about the freeside-commits
mailing list