Mailing List Archive

Performance Disabled Time
Hello,

after adding a date() output in the 'perfdisabled' message (thanks to
Magnus for installing the patch) I got this mornig a interesting result
on Spezial:Lonelypages:

Versuchen Sie es bitte zwischen 02:00 und 14:00 UTC noch einmal
(Aktuelle Serverzeit : 08:08:43 UTC).
Translation(short): Try again between 2:00 and 14:00 UTC. (Current
Servertime: 8:00 UTC).

I looked in the source but did not found anything changing the
$wgMiserMode Variable. I think it will modified externally. And I think
I read on various pages that the server uses UTC time itself. Still the
output is mystic.
So can someone please give me a hint, whats wrong?
(a) using simple date() is bad, because the server don't use UTC.
(b) the external change of the $wgMiserMode Variable happens not at 2
and 14 UTC but at ... i.e. 14 and 2 UTC.
(c) something completly different


Smurf
--
Tower: Flight A723, come in on nine o'clock.
A723: Sorry tower, can you give us another hint? We have only digital
watches!
------------------------- Anthill inside! ---------------------------
Re: Performance Disabled Time [ In reply to ]
On Sat, 2003-03-15 at 00:49, Thomas Corell wrote:
> I looked in the source but did not found anything changing the
> $wgMiserMode Variable.

It's set (or not) in LocalSettings.php.

Currently:
$n = date("H");
if($n < 2 or $n > 14) $wgMiserMode = true;
$wgMiserMode = true;

Uh, oops. ;)

-- brion vibber (brion @ pobox.com)
Re: Performance Disabled Time [ In reply to ]
Brion Vibber wrote:
> On Sat, 2003-03-15 at 00:49, Thomas Corell wrote:
> It's set (or not) in LocalSettings.php.
> Currently:
> $n = date("H");
> if($n < 2 or $n > 14) $wgMiserMode = true;
> $wgMiserMode = true;
> Uh, oops. ;)

Very dynamic setting :)

Ok, this LocalSettings.php is not the one in the cvs. Hard to find, then ;)

Smurf
--
------------------------- Anthill inside! ---------------------------