Page MenuHomePhabricator

Time part of datetimepicker gets duplicated on each edit
Closed, ResolvedPublic

Description

Author: mail

Description:
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?


Version: unspecified
Severity: normal

Details

Reference
bz28038

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:32 PM
bzimport set Reference to bz28038.

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.

mail wrote:

(In reply to comment #1)

It's an easy fix, line 38 of datetimepicker.js has to go.

Yes, that was it :)