Opened 14 years ago

Closed 14 years ago

#6118 closed defect (fixed)

Missing Millisecond Padding in

Reported by: Adam Peller Owned by: Adam Peller
Priority: high Milestone: 1.1
Component: Date Version: 1.0
Keywords: Cc:
Blocked By: Blocking:


From Ronnie Roberts, IBM:

For a TimeTextBox?, I am using a custom format . I have overridden the serialize method: return, {timePattern: this.constraints.timePattern, selector: 'time' });

The problem is that handles milliseconds (SSS) slightly different than other values, yielding the millisecond field to be 0 when it should be 000. This causes the pattern validation to fail. Changing the line of code ( line 140): s = dateObject.getMilliseconds(); pad = true;

Yields the correct results.

Change History (1)

comment:1 Changed 14 years ago by Adam Peller

Resolution: fixed
Status: newclosed

(In [12975]) pad milliseconds field. Fixes #6118

Note: See TracTickets for help on using tickets.