From d37cca4bf8f86149083342556f849c22a8c525a9 Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Sun, 29 May 2011 15:43:28 +0000 Subject: [PATCH] Fix a regression from r63144: "Fixed bizarre $time comparison (compared display time and a UNIX const time)" That's not correct: Timestamps in table logging are stored as yyyymmddhhmmss --- includes/LogEventsList.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index 3d24d4cfc8..6ec54e10d0 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -505,8 +505,9 @@ class LogEventsList { # Fall back to a blue contributions link $revert = $this->skin->userToolLinks( 1, $title->getDBkey() ); } - $ts = wfTimestamp( TS_UNIX, $row->log_timestamp ); - if( $ts < '20080129000000' ) { + #$ts = wfTimestamp( TS_UNIX, $row->log_timestamp ); + var_dump( wfTimestamp( TS_UNIX, '20080129000000' ) ); + if( $row->log_timestamp < '20080129000000' ) { # Suppress $comment from old entries (before 2008-01-29), # not needed and can contain incorrect links $comment = ''; -- 2.20.1