use proper timestamp conversion for user_touched
authorDomas Mituzas <midom@users.mediawiki.org>
Tue, 10 Aug 2004 13:17:20 +0000 (13:17 +0000)
committerDomas Mituzas <midom@users.mediawiki.org>
Tue, 10 Aug 2004 13:17:20 +0000 (13:17 +0000)
includes/User.php

index 63044d7..98b3396 100644 (file)
@@ -273,7 +273,7 @@ class User {
                        $this->mNewpassword = $s->user_newpassword;
                        $this->decodeOptions( $s->user_options );
                        $this->mRights = explode( ",", strtolower( $s->user_rights ) );
-                       $this->mTouched = $s->user_touched;
+                       $this->mTouched = wfTimestamp(TS_MW,$s->user_touched);
                }
 
                $this->mDataLoaded = true;
@@ -570,7 +570,7 @@ class User {
                                'user_email' => $this->mEmail,
                                'user_options' => $this->encodeOptions(),
                                'user_rights' => implode( ",", $this->mRights ),
-                               'user_touched' => $this->mTouched
+                               'user_touched' => $dbw->timestamp($this->mTouched)
                        ), array( /* WHERE */
                                'user_id' => $this->mId
                        ), $fname