Index: trunk/extensions/CentralNotice/CentralNotice.db.php |
— | — | @@ -33,7 +33,7 @@ |
34 | 34 | if ( $preferred ) |
35 | 35 | $conds[] = "not_preferred = 1"; |
36 | 36 | if ( !$date ) |
37 | | - $date = wfTimestamp( TS_MW ); |
| 37 | + $date = $dbr->timestamp(); |
38 | 38 | |
39 | 39 | $conds[] = ( $date ) ? "not_start <= ". $dbr->addQuotes( $date ) : "not_start <= " . $dbr->addQuotes( $dbr->timestamp( $date ) ); |
40 | 40 | $conds[] = ( $date ) ? "not_end >= " . $dbr->addQuotes( $date ) : "not_end >= " . $dbr->addQuotes( $dbr->timestamp( $date ) ); |