[freeside-commits] branch master updated. 289958e5f402e896e561e6911081b9cd36c4c098

Ivan ivan at 420.am
Fri Dec 5 13:16:04 PST 2014


The branch, master has been updated
       via  289958e5f402e896e561e6911081b9cd36c4c098 (commit)
      from  c7c96355331687b6fd44bfe541b402bd0664481d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 289958e5f402e896e561e6911081b9cd36c4c098
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Dec 5 13:16:03 2014 -0800

    fix broadsoft CDR regex

diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index 306dbd0..1a36660 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -1632,7 +1632,7 @@ sub _cdr_date_parse {
     # optionally without seconds
     ($mon, $day, $year, $hour, $min, $sec) = ( $1, $2, $3, $4, $5, $6 );
     $sec = 0 if !defined($sec);
-   } elsif ( $date  =~ /^\s*(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d+$)/ ) {
+   } elsif ( $date  =~ /^\s*(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(\.\d+)$/ ) {
     # broadsoft: 20081223201938.314
     ($year, $mon, $day, $hour, $min, $sec) = ( $1, $2, $3, $4, $5, $6 );
   } elsif ( $date  =~ /^\s*(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})\d+(\D|$)/ ) {
@@ -1642,7 +1642,7 @@ sub _cdr_date_parse {
     # WIP: 20100329121420
     ($year, $mon, $day, $hour, $min, $sec) = ( $1, $2, $3, $4, $5, $6 );
   } elsif ( $date =~ /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/) {
-    # Telos
+    # Telos 2014-10-10T05:30:33Z
     ($year, $mon, $day, $hour, $min, $sec) = ( $1, $2, $3, $4, $5, $6 );
     $options{gmt} = 1;
   } else {

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/cdr.pm |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list