X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcdr.pm;h=723123a76d12d081a183069127a50f554bbe6552;hb=be5a76006fb0d317c667c0432737284146b2ae45;hp=418519eb2e5f1ce4dfcb8a33e7a2be6a2263a5e0;hpb=5849811bcc0f85c9c92d89f3948c5779dd67998d;p=freeside.git diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index 418519eb2..723123a76 100644 --- a/FS/FS/cdr.pm +++ b/FS/FS/cdr.pm @@ -752,6 +752,12 @@ 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); + return $time if $time > 100000; #just in case + } my($year, $mon, $day, $hour, $min, $sec);