summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2009-07-09 23:59:34 +0000
committerivan <ivan>2009-07-09 23:59:34 +0000
commit96c2153a00ebf556d94feaf033ce337c13dd0cc6 (patch)
tree380a6f1b737bf3a9ffeb1e88d0a2a98c67ef36f5 /FS
parent1cf09d80c37393560d1fd831ec1aa04354e09d6a (diff)
sansay CDRs, RT#5495
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/cdr.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index 418519eb2..8ade4ea41 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -753,6 +753,11 @@ sub _cdr_date_parse {
return '' unless length($date); #that's okay, it becomes NULL
+ 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);
#$date =~ /^\s*(\d{4})[\-\/]\(\d{1,2})[\-\/](\d{1,2})\s+(\d{1,2}):(\d{1,2}):(\d{1,2})\s*$/