Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -170,7 +170,7 @@ |
171 | 171 | public static function DeleteOld() { |
172 | 172 | global $wgOnlineStatusBar_LogoutTime; |
173 | 173 | $dbw = wfGetDB( DB_MASTER ); |
174 | | - $time = wfTimestamp( TS_UNIX ) - $wgOnlineStatusBar_LogoutTime; |
| 174 | + $time = $dbw->timestamp() - $wgOnlineStatusBar_LogoutTime; |
175 | 175 | $dbw->delete( 'online_status', array( "timestamp < $time" ), __METHOD__ ); |
176 | 176 | return 0; |
177 | 177 | } |