Page MenuHomeMiraheze

Time Zone Question (before actual config request)
Closed, ResolvedPublic

Description

Before logging in, the time stamps for "Recent Changes" seem to be UTC. After logging in, they are correct for me (Eastern Daylight Savings Time).

Can the default time zone be set for the local PC? From https://www.mediawiki.org/wiki/Manual:Timezone

Alternative methods[edit]
If you just want to use the local time of your PC, you can add this line in your LocalSettings.php. This method is what MediaWiki does by default (see includes/Setup.php); it also avoids problems with daylight savings time:

$wgLocalTZoffset = date("Z") / 60;

Would that interfere with the user preferences after logging in?

Thanks,

Mike*V

Event Timeline

@MikeV Per the "wgLocaltimezone" setting, the timezone can be set for the whole wiki, but if you have a custom timezone set in your preferences you will still see that one, only anonymous users or users who don't have a timezone set will see the one defined in "wgLocaltimezone".

EDIT: I re-read it and I think this is not what you meant. We currently don't have "wgLogcalTZoffset" enabled but I think we can enable it for your wiki. It should not interfere with user preferences but I'm not 100% sure.

Reception123 triaged this task as Normal priority.Jul 6 2017, 06:35
Reception123 added a project: MediaWiki.

According to https://www.mediawiki.org/wiki/Manual:Timezone, the local PC time setting is supposed to be the method "MediaWiki does by default". But the default on Miraheze seems to be UTC, instead.

Please change the nenawiki time zone settings from UTC to the normal MediaWiki default of local PC time: $wgLocalTZoffset = date("Z") / 60;

Thanks

Since it says that is the default, that is strange. I will ask other sysadmins before making the change.

It'll apply the PC default where it is rendered which in this case is UTC we have set. It's impossible to use the local of a user without some automatic detection and hard to set up logic and even then it'll not work effectively,

That is why it is recommended to use wgLocaltimezone if you want a different timezone set on your wiki.

Is "local" rendering of one time zone another characteristic (limitation?) of a farm?

Will wgLocaltimezone change with Daylight Savings Time?

What's our best chance of getting America/New York time zone settings that change with Daylight Savings Time?

Reception123 mentioned this in Unknown Object (Diffusion Commit).Jul 6 2017, 15:23

@MikeV Choosing 'America/New York' should definitely mean that daylight savings time is taken into consideration. I have now applied this setting for your wiki. Please confirm that it works as you intended it to.

It works. Thanks. Still curious about the "local rendering" on farms... Except for that question, this task can be closed. Thanks again.

Reception123 claimed this task.

There should be no differences between "local rendering" on a farm or on a singular wiki normally.