(bug 5727) Time magic words should use $wgLocaltimezone instead of UTC:
authorRotem Liss <rotem@users.mediawiki.org>
Tue, 20 Jun 2006 18:29:54 +0000 (18:29 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Tue, 20 Jun 2006 18:29:54 +0000 (18:29 +0000)
commitb0099858a30615288e32e2f1cb51e9f8e4962b6d
tree44be4c3416fa6e409b944ae5deb34dfbe90e5688
parent6c6b3b8083ceb11c2fe4c3ea35b76620ef90f476
(bug 5727) Time magic words should use $wgLocaltimezone instead of UTC:
1. Not using anymore the functions wfTimestamp (for {{CURRENTTIME}}) and wfTimestampNow (for {{CURRENTTIMESTAMP}}) for the time magic words, because they output a UTC date; instead, using the built-in function "date" with the parameters "YmdHis".
2. Fix number 1 makes the time magic words OK when using the server default timezone (actually, all of them were OK except {{CURRENTIME}} and {{CURRENTTIMESTAMP}}), but the problem is still exist when setting $wgLocaltimezone, as it isn't noticed. Therefore, setting the timezone to "TZ" enviroment variable like in the signature, getting the various dates and times by "date" function, then setting the "TZ" to its previous value.
includes/Parser.php