Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#1769 closed defect (fixed)

dropdowntimepicker: displayFormat never used

Reported by: jan831@… Owned by: Adam Peller
Priority: high Milestone:
Component: Widgets Version: 0.4
Keywords: dropdowntimepicker Cc:
Blocked By: Blocking:

Description

the dropdowntimepicker doens't use the displayFormat. There is an error in how the format-function is called: there's a mixup with datePattern & the selector timeOnly, this optionlist excludes the pattern from being used in the format function.

 this.inputNode.value = dojo.date.format(this.timePicker.time,
                      {formatLength:this.formatLength, datePattern:this.displayFormat, selector:'timeOnly', locale:this.lang});

(src/widget/DropdownTimePicker.js, onSetTime function)

Changing datePattern to timePattern will probably solve the problem

Change History (3)

comment:1 Changed 13 years ago by Adam Peller

Owner: changed from bill to Adam Peller

yup. looks like a copy/paste problem. thanks

comment:2 Changed 13 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [6335]) Fixes #1769. Thanks jan831. Added test case.

comment:3 Changed 13 years ago by (none)

Milestone: 0.4.1

Milestone 0.4.1 deleted

Note: See TracTickets for help on using tickets.