[freeside-commits] branch FREESIDE_3_BRANCH updated. 138fb1483c92e225e89ba4a0848f6cd556a39060
Ivan
ivan at 420.am
Fri Dec 5 13:16:05 PST 2014
The branch, FREESIDE_3_BRANCH has been updated
via 138fb1483c92e225e89ba4a0848f6cd556a39060 (commit)
from 67aa98260da193dcda207e63fd94adbd90a13131 (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 138fb1483c92e225e89ba4a0848f6cd556a39060
Author: Ivan Kohler <ivan at freeside.biz>
Date: Fri Dec 5 13:16:04 2014 -0800
fix broadsoft CDR regex
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index 4c02b06..db9832a 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -1627,7 +1627,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|$)/ ) {
@@ -1637,7 +1637,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