From 3b0ae6de8aababbb2a42ce61034de03e1e6a7386 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Thu, 7 Apr 2005 18:14:31 +0000 Subject: [PATCH] * Using wfTimestampNow() and only allowing people to save make signitures with the timestamp set as the default in the wgContLang file (I'll be crucified for this) --- includes/Parser.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index f82209bea0..0775293a38 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2596,8 +2596,13 @@ class Parser $oldtz = getenv( 'TZ' ); putenv( 'TZ='.$wgLocaltimezone ); } - /* Note: this is an ugly timezone hack for the European wikis */ - $d = $wgContLang->timeanddate( date( 'YmdHis' ), false ) . + + /* Note: This is the timestamp saved as hardcoded wikitext to + * the database, we use $wgContLang here in order to give + * everyone the same signiture and use the default one rather + * than the one selected in each users preferences. + */ + $d = $wgContLang->timeanddate( wfTimestampNow(), false, false) . ' (' . date( 'T' ) . ')'; if ( isset( $wgLocaltimezone ) ) { putenv( 'TZ='.$oldtzs ); -- 2.20.1