Changeset 2568

Show
Ignore:
Timestamp:
06/13/08 05:41:20 (18 months ago)
Author:
fumiakiy
Message:

The number of day should be N - 1 because it's compared to current_date. BugId:80061

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-40/php/lib/mtdb_mysql.php

    r2285 r2568  
    2525    } 
    2626    function limit_by_day_sql($column, $days) { 
     27        $days -= 1; 
    2728        return 'date_add(' . $column .', interval ' .  
    2829            $days . ' day) >= current_date()';