* Using wfTimestampNow() and only allowing people to save make signitures with
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 7 Apr 2005 18:14:31 +0000 (18:14 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 7 Apr 2005 18:14:31 +0000 (18:14 +0000)
  the timestamp set as the default in the wgContLang file (I'll be crucified
  for this)

includes/Parser.php

index f82209b..0775293 100644 (file)
@@ -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 );