diff options
author | ivan <ivan> | 2007-10-29 10:31:31 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-10-29 10:31:31 +0000 |
commit | 804a4999a84b827ac4ec3fa34158e097da31ade3 (patch) | |
tree | 936a94d592e62814bafcdebdb3dbaafd230aed16 /httemplate/search | |
parent | b91bcdff200acb281c58c4ba5ef8482b335ecdbc (diff) |
mysql me 1.9 more times
Diffstat (limited to 'httemplate/search')
-rw-r--r-- | httemplate/search/cdr.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/search/cdr.html b/httemplate/search/cdr.html index 61d41f8d0..9426c33c3 100644 --- a/httemplate/search/cdr.html +++ b/httemplate/search/cdr.html @@ -48,10 +48,12 @@ if ( $cgi->param('freesidestatus') eq 'NULL' ) { # dates ### +my $str2time_sql = str2time_sql; + my($beginning, $ending) = FS::UI::Web::parse_beginning_ending($cgi); push @search, -my @dsearch = ( "extract(epoch from calldate) >= $beginning ", - "extract(epoch from calldate) <= $ending" +my @dsearch = ( "$str2time calldate) >= $beginning ", + "$str2time calldate) <= $ending" ); push @search, @dsearch; push @qsearch, @search; |