[freeside-commits] branch master updated. 5716d52ab6d97510b5e470d53a4feb50d34a11c7

Jeremy Davis jeremyd at 420.am
Tue Jul 1 08:35:59 PDT 2014


The branch, master has been updated
       via  5716d52ab6d97510b5e470d53a4feb50d34a11c7 (commit)
      from  447f1a906b47868497485edc3ba190a808539956 (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 5716d52ab6d97510b5e470d53a4feb50d34a11c7
Author: Jeremy Davis <jeremyd at freeside.biz>
Date:   Tue Jul 1 11:35:33 2014 -0400

    29050 Fix dates

diff --git a/FS/FS/cdr/orcon.pm b/FS/FS/cdr/orcon.pm
index 7bdba93..1cad011 100644
--- a/FS/FS/cdr/orcon.pm
+++ b/FS/FS/cdr/orcon.pm
@@ -3,6 +3,7 @@ package FS::cdr::orcon;
 use strict;
 use vars qw( @ISA %info);
 use FS::cdr;
+use Date::Parse;
 
 @ISA = qw(FS::cdr);
 
@@ -20,7 +21,7 @@ use FS::cdr;
         sub { my ($cdr, $calldate) = @_;
          	$cdr->set('calldate', $calldate);
 
-                $calldate =~ /^(\d{4})\/(\d{2})\/(\d{4})\s*(\d{2}):(\d{2}):(\d{2})$/
+                $calldate =~ /^(\d{4})-(\d{2})-(\d{2})\s*(\d{2}):(\d{2}):(\d{2})$/
                                or die "unparseable date: $calldate";
                 my $tmp_date = "$2/$1/$3 $4:$5:$6";
 

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

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




More information about the freeside-commits mailing list