From a0f0cb6ee4ca2db42f930e58a26c16376073224a Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Fri, 20 Aug 2004 13:43:45 +0000 Subject: [PATCH] fixup timestamps --- includes/LogPage.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index 09e62946fa..dbae362d27 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -1,4 +1,6 @@ mId = $s->cur_id; $this->mContent = $s->cur_text; - $this->mTimestamp = $s->cur_timestamp; + $this->mTimestamp = wfTimestamp(TS_MW,$s->cur_timestamp); } else { $this->mId = 0; $this->mContent = $defaulttext; - $this->mTimestamp = wfTimestampNow(); + $this->mTimestamp = wfTimestamp(TS_MW); } $this->mContentLoaded = true; # Well, sort of @@ -70,7 +72,7 @@ class LogPage { $dbw->insertArray( 'cur', array( 'cur_id' => $seqVal, - 'cur_timestamp' => $now, + 'cur_timestamp' => $dbw->timestamp($now), 'cur_user' => $uid, 'cur_user_text' => $wgUser->getName(), 'cur_namespace' => NS_WIKIPEDIA, @@ -79,21 +81,21 @@ class LogPage { 'cur_comment' => $this->mComment, 'cur_restrictions' => 'sysop', 'inverse_timestamp' => $won, - 'cur_touched' => $now, + 'cur_touched' => $dbw->timestamp($now), ), $fname ); $this->mId = $dbw->insertId(); } else { $dbw->updateArray( 'cur', array( /* SET */ - 'cur_timestamp' => $now, + 'cur_timestamp' => $dbw->timestamp($now), 'cur_user' => $uid, 'cur_user_text' => $wgUser->getName(), 'cur_text' => $this->mContent, 'cur_comment' => $this->mComment, 'cur_restrictions' => 'sysop', 'inverse_timestamp' => $won, - 'cur_touched' => $now, + 'cur_touched' => $dbw->timestamp($now), ), array( /* WHERE */ 'cur_id' => $this->mId ), $fname -- 2.20.1