How to reproduce:
Make sure the "Global Configuration > Server > Server Time Zone" setting is set to something, e.g. Europe/London:
Make sure you're logged into the Admin area with a user that hasn't already set a language and go to "Basic Settings" - you should see the timezone isn't showing the Global setting:
The fallout from this is that whenever a user saves their profile they unwittingly set their timezone "Abidjan".
The line responsible for setting the default value is:
\libraries\joomla\form\fields\timezone.php line 131:
if (strlen($this->value) == 0 && empty($keyValue))
As far as I can tell, $keyValue
is never empty as it's the users ID, and thus this condition is never met.
Changing the line to just:
if (strlen($this->value) == 0)
fixes the problem for me though I'm not sure if it has any other unintended consequences
Thanks
@infograf768, interesting, thanks. I don't see the 'Use Default' option in the tz list at all. I'll investigate further.
<field name="timezone" type="timezone"
label="COM_ADMIN_USER_FIELD_TIMEZONE_LABEL"
description="COM_ADMIN_USER_FIELD_TIMEZONE_DESC"
>
<option value="">JOPTION_USE_DEFAULT</option>
</field>
I cant replicate this either.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4476.
Status | New | ⇒ | Closed - Unconfirmed Report |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-08 08:16:43 |
I suggest you overwrite your site with a fresh 3.3.7
Ahhh, sorry everyone - it was a dodgy plugin that was causing the error. I thought I'd disabled them all but this one slipped through.
Thanks again.
Labels |
Added:
?
|
Hmmm this looks like a nasty old bug. But I think the thing about the default value is actually expected behaviour. What's the bug is that the form should take the value of the existing timezone saved for the user - which it looks like it's not :/