projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d40ace6
)
parse text startdate and enddate in CDRs, RT#8906
author
ivan
<ivan>
Wed, 23 Jun 2010 20:55:21 +0000
(20:55 +0000)
committer
ivan
<ivan>
Wed, 23 Jun 2010 20:55:21 +0000
(20:55 +0000)
FS/FS/cdr.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cdr.pm
b/FS/FS/cdr.pm
index
bf002f6
..
4de7aa3
100644
(file)
--- a/
FS/FS/cdr.pm
+++ b/
FS/FS/cdr.pm
@@
-285,6
+285,10
@@
sub check {
# ;
# return $error if $error;
+ for my $f ( grep { $self->$_ =~ /[a-z ]/i } qw( startdate enddate ) ) {
+ $self->$f( str2time($self->$f) );
+ }
+
$self->calldate( $self->startdate_sql )
if !$self->calldate && $self->startdate;