Opened 10 years ago

Closed 6 years ago

#15382 closed defect (patchwelcome) should work with "h:m:s"

Reported by: thyink Owned by: Adam Peller
Priority: undecided Milestone: 1.13
Component: Date Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:


the issue is that you can format a date time to use single digit minutes and seconds: Date("May 1 2012 15:06:06"), {selector: "date time", datePattern: "MM-dd-yy", timePattern: "h:m:s"});: "05-01-12 3:6:6"

but you cannot parse the same format:"05-01-12 3:6:6", {selector: "date time", datePattern: "MM-dd-yy", timePattern: "h:m:s"});: null

it only works if the minutes and seconds are greater than 9... i think this is fine for strict mode, but should work otherwise... and it does work fine as long as you use mm and ss

Change History (1)

comment:1 Changed 6 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in the past 3+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.