Last modified: 2011-03-19 17:21:50 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 T30038, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28038 - Time part of datetimepicker gets duplicated on each edit
Time part of datetimepicker gets duplicated on each edit
Status: CLOSED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticFormsInputs (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: s7eph4n
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-03-14 10:14 UTC by Patrick
Modified: 2011-03-19 17:21 UTC (History)
0 users

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


Attachments

Description Patrick 2011-03-14 10:14:59 UTC
Every time you edit a page with a datetimepicker field, the time part gets duplicated.

Example:

Page after 1st save:
some text
Deadline=2011/03/14 17:00

Page after 2nd save:
some texxt
Deadline=2011/03/14 17:00 17:00

Page after 3rd save:
some texxxt
Deadline=2011/03/14 17:00 17:00 17:00 17:00

I tried to reproduce it on sandbox.referata.com, see http://sandbox.referata.com/wiki/Time_gets_duplicated - but there another problem occurs, which prevents me from testing: the form seems unable to parse what it stores (it shows - and probably expects to parse on next load - 03/14/2011 12:00, but it stores 2011/03/14 12:00). Configuration issue?
Comment 1 s7eph4n 2011-03-14 10:50:00 UTC
I'll correct this bug tonight. It's an easy fix, line 38 of datetimepicker.js has to go.

The behaviour on referata comes from an older (now corrected) bug, where the datetimepicker was simply unable to parse even its own values. The stored time format is correct, however: Current versions of the datepicker always store dates as yyyy/mm/dd and display it according to the user language, i.e. English see dd/mm/yyyy, Germans get dd.mm.yyyy.
Comment 2 Patrick 2011-03-14 13:37:23 UTC
(In reply to comment #1)
> It's an easy fix, line 38 of datetimepicker.js has to go.

Yes, that was it :)

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


Navigation
Links