Page MenuHomePhabricator

HTMLForm datetime selectors should use the same timezone as content language
Open, Needs TriagePublic

Description

On Special:AbuseFilter/examine I noticed that HTMLForm's datetime selectors (and probably the other time widgets as well) aren't using the same time zone as content language. For instance, check out the italian page, where right now time is UTC+2. Click on a datetime selector, which is supposed to be automatically filled with the current local time. Instead, it's filled with the current UTC time. I know datetime have the timezone explicitly declared (the Z at the end of the field), but this shouldn't be the default.

Event Timeline

Wikis are global.

Maybe user preference time zone is preferable?

Time zone is indeed preferable, but its default is set to wiki's default. So maybe selectors should use the one set in user preferences, but surely not default to UTC.