diff options
author | Jeremy Davis <jeremyd@freeside.biz> | 2014-07-01 11:37:06 -0400 |
---|---|---|
committer | Jeremy Davis <jeremyd@freeside.biz> | 2014-07-01 11:37:06 -0400 |
commit | 6b097841bf7a699e61543c866c7b8b7985201693 (patch) | |
tree | 6254fc4782b9462f4ca051e5f38aa8783aa5ed52 /FS | |
parent | 960e5018d7e63f96f57fed4a56a2c1b700e8a64e (diff) |
29050 Fix dates
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/cdr/orcon.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/cdr/orcon.pm b/FS/FS/cdr/orcon.pm index 7bdba93a6..1cad01118 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"; |