Last modified: 2014-09-24 00:51:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21991, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19991 - Provide default time zone selection in installer
Provide default time zone selection in installer
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.21.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Micke Nordin
: design
Depends on: 20628
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-29 15:34 UTC by Brion Vibber
Modified: 2014-09-24 00:51 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch to add timezone selection at installation (2.74 KB, patch)
2009-08-07 14:58 UTC, Micke Nordin
Details
Holds an array of valid timezone options (12.62 KB, application/json)
2009-08-07 15:00 UTC, Micke Nordin
Details
Patch to add timezone selection at installation (2.58 KB, patch)
2009-08-07 15:38 UTC, Micke Nordin
Details
A patch to add a timezone selector to the webinstaller (9.28 KB, patch)
2013-02-03 14:41 UTC, Micke Nordin
Details
Fix for bug 19991 (6.12 KB, patch)
2013-02-04 18:58 UTC, Micke Nordin
Details

Description Brion Vibber 2009-07-29 15:34:25 UTC
While mediawiki's UTC default is good for massively international sites, many local or workgroup wikis would much prefer using local time as default. It may be good to provide an option at install time to make it easier to set up this way.
Comment 1 Micke Nordin 2009-08-07 14:58:59 UTC
Created attachment 6435 [details]
Patch to add timezone selection at installation

I wanted to try and fixa a bug, and this seemed easy enough for me :) so here is a patch. I also requires the file includes/TimeZones.php which I will upload imidiatly after I'm done with the patch upload.
Comment 2 Micke Nordin 2009-08-07 15:00:19 UTC
Created attachment 6436 [details]
Holds an array of valid timezone options

This file goes into includes directory and the earlier supplied patch depends on it
Comment 3 Brion Vibber 2009-08-07 15:02:55 UTC
Hmmm.... there shouldn't be any need to make our own timezone database; we've already got access to the system TZ database through the DateTime class and friends, as done in Special:Preferences.
Comment 4 Micke Nordin 2009-08-07 15:38:47 UTC
Created attachment 6437 [details]
Patch to add timezone selection at installation

Right, as it seems any value in DateTimeZone::listIdentifiers() is a valid option for $wgLocaltimezone I just went ahead and used that function instead, so there is no longer any need for the array of time zones. 

I probably should mention that what this patch does is that it adds a section to LocalSettings.php per the primary instructions in http://www.mediawiki.org/wiki/Manual:Timezone. It only does this if it's not running in safe mode however (and if it is, the selection should be entirely invisible at installation).

/Micke
Comment 5 Svip 2009-08-07 15:42:31 UTC
Why not make a hideable section on the install page for "optional" or "non-important" settings.  When unhid, these settings can be configured away from their default position (which obviously is presented), if they are changed, they will be added to the LocalSettings.php, otherwise they won't make it in there.

One of these settings could be the change timezones, but it could also be one that was "enable uploads" from before and stuff like that.

I realise this is more UI work over what can be changed easily later in the LocalSettings.php, but if we are going this way with this bug anyway, I do not see a reason not to go all in.
Comment 6 Chad H. 2009-08-26 14:09:25 UTC
Should probably patch this against the new-installer branch. Don't really see a huge reason to keep putting new things in the installer that's going away.
Comment 7 Siebrand Mazeland 2011-03-20 19:23:34 UTC
Trying to lure Chad into taking this...
Comment 8 Sumana Harihareswara 2011-11-10 05:27:05 UTC
(In reply to comment #6)
> Should probably patch this against the new-installer branch. Don't really see a
> huge reason to keep putting new things in the installer that's going away.

Micke Nordin, thank you for your patch.  Do you have time and interest in revising it so it works with our current codebase?

Thanks!
Comment 9 Micke Nordin 2013-01-29 18:03:48 UTC
I'll look into this agin and see if I can familiarize myself with the new installer.
Comment 10 Micke Nordin 2013-01-29 18:45:52 UTC
I suppose it would make sense to put this in the optional section of the installer? I'll see if I can figure out how to do that :)
Comment 11 Micke Nordin 2013-01-29 19:32:06 UTC
It seems to be the class WebInstaller_Options in includes/installer/WebInstallerPage.php that needs to be patched with a with a dropdown menu like the ones used in WebInstaller_Language.
Comment 12 Micke Nordin 2013-02-03 14:41:05 UTC
Created attachment 11724 [details]
A patch to add a timezone selector to the webinstaller

Ok, I think this should work. It does for me.
Comment 13 Andre Klapper 2013-02-04 16:36:23 UTC
Hi Micke! Thanks for your reworked patch!
Could you merge your patch into one patch that can be applied to the codebase, instead of the current situation that your latest patch depends on your previous patch?

Furthermore, you are very welcome to use Developer access
  https://www.mediawiki.org/wiki/Developer_access
to submit this as a Git branch directly into Gerrit:
  https://www.mediawiki.org/wiki/Git/Tutorial
Putting your branch in Git makes it easier for us to review it quickly.
Thanks again! We appreciate your contribution.
Comment 14 Micke Nordin 2013-02-04 18:58:13 UTC
Created attachment 11727 [details]
Fix for bug 19991

A clean diff
Comment 15 Micke Nordin 2013-02-04 18:59:25 UTC
There is a new clean diff now, I'll look in to the git stuff as well to see if I can get a branch in gerrit.
Comment 16 Micke Nordin 2013-02-04 19:52:20 UTC
Ok, I put it in gerrit now as well:

https://gerrit.wikimedia.org/r/47442

I hope I got everything right :)
Comment 17 Andre Klapper 2013-07-24 10:36:47 UTC
Patch in Gerrit needs rework...
Comment 18 Gerrit Notification Bot 2013-11-03 18:57:50 UTC
Change 47442 had a related patch set uploaded by Nemo bis:
Added a timezone selector to the webinstaller

https://gerrit.wikimedia.org/r/47442

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links