Opened 7 years ago

Closed 7 years ago

#14939 closed defect (invalid)

dojo.date.locale.format() inconsistency

Reported by: tk Owned by: tk
Priority: high Milestone: tbd
Component: Date Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Line 115 of locale.js reads:

case 'K': 0-11

However documentation for the K format option says it should be 1-12 which means Line 116 should read identical to Line 110 (or they could be combined)

Example:

a = new Date("2012-03-14 12:00:00")

Wed Mar 14 2012 12:00:00 GMT-0500 (CDT)

dojo.date.locale.format(a, {selector: 'time', timePattern: "K:mm a"})

"0:00 PM" should read "12:00: PM"

Change History (2)

comment:1 Changed 7 years ago by Adam Peller

Owner: changed from Adam Peller to tk
Status: newpending

@tk, what's your source? I'm going by http://unicode.org/reports/tr35/tr35-6.html

comment:2 Changed 7 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.