Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#1708 closed defect (fixed)

dojo.date.format fails for patterns without separators

Reported by: Adam Peller Owned by: Adam Peller
Priority: high Milestone:
Component: Date Version: 0.4
Keywords: Cc: Karl Tiedt
Blocked By: Blocking:

Description

dojo.date.format(new Date(2006,9,20), {datePattern:"dd/MMyyyy", selector:"dateOnly"})

"20/undefined"

dojo.date.format(new Date(2006,9,20), {datePattern:"ddMMyyyy", selector:"dateOnly"})

"00000020"

Change History (5)

comment:1 Changed 13 years ago by Adam Peller

turns out, this is a bug with the existing zh date code, which has formats beginning "ahh..."

comment:2 Changed 13 years ago by Adam Peller

Priority: normalhigh

comment:3 Changed 13 years ago by Adam Peller

Milestone: 0.50.4.1
Status: newassigned

comment:4 Changed 13 years ago by Adam Peller

Resolution: fixed
Status: assignedclosed

(In [6365]) More accurate regexp for pattern parsing (thanks Greg G) Fixes #1708

comment:5 Changed 12 years ago by (none)

Milestone: 0.4.1

Milestone 0.4.1 deleted

Note: See TracTickets for help on using tickets.