projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
960e501
)
29050 Fix dates
author
Jeremy Davis
<jeremyd@freeside.biz>
Tue, 1 Jul 2014 15:37:06 +0000
(11:37 -0400)
committer
Jeremy Davis
<jeremyd@freeside.biz>
Tue, 1 Jul 2014 15:37:06 +0000
(11:37 -0400)
FS/FS/cdr/orcon.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr/orcon.pm
b/FS/FS/cdr/orcon.pm
index
7bdba93
..
1cad011
100644
(file)
--- 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";