Page MenuHomePhabricator

handle timezones in upload wizard
Closed, ResolvedPublic

Description

Set a UTC+11 (Australia/Sydney) time zone on commons. Try to upload an image. UploadWizard complains, the date you are trying to set it in the future'. This happens frequently, as often I indicate a today date for my uploads (perhaps whenever it is more than 11AM in my area? I am not sure what exactly is the time of day when this bug occurs, but this is my hypothesis). But I'd prefer it to

  • show my timezone
  • show my current time
  • allow me to choose the date in my timezone

This way we would

  • ensure that the user has set their timezone correctly and is indicating the date in the correct time zone, and
  • have a chance to convert the date from the user's time zone to UTC or whatever standard the date is stored in.

See Also: T42727: Upload Wizard doesn't include the timezone when adding a date

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Should have been fixed T139808, but the patch confused seconds with milliseconds.

Change #1048873 had a related patch set uploaded (by Simon04; author: Simon04):

[mediawiki/extensions/UploadWizard@master] uw.DateDetailsWidget: convert 14h to ms for addition to Date.now()

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

Change #1048873 merged by jenkins-bot:

[mediawiki/extensions/UploadWizard@master] uw.DateDetailsWidget: convert 14h to ms for addition to Date.now()

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

matmarex assigned this task to simon04.
matmarex subscribed.