diff options
author | ivan <ivan> | 2010-06-23 20:55:21 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-06-23 20:55:21 +0000 |
commit | 5901094b2c969be3a56d91f0341161868c583169 (patch) | |
tree | 6564987315b04fde0c464e4808aee0cde713adc1 /FS/FS/cdr.pm | |
parent | d40ace67b96eba52dc305f3fd80f98f353f70ed0 (diff) |
parse text startdate and enddate in CDRs, RT#8906
Diffstat (limited to 'FS/FS/cdr.pm')
-rw-r--r-- | FS/FS/cdr.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm index bf002f686..4de7aa35b 100644 --- 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; |