Opened 5 years ago

Closed 5 years ago

#18233 closed defect (fixed)

Hebrew date of 13/23/5774, 12:00 AM flagged as invalid

Reported by: Carolyn Scott Owned by: hhelena
Priority: undecided Milestone: 1.9.4
Component: Dojox Version: 1.9.3
Keywords: Cc:
Blocked By: Blocking:

Description

I am using dojo 1.9.3 and set the calendar to use Hebrew. My locale is English. I select the calendar picker, navigate to month Elul of year 5774 and select a day in the calendar picker. The calendar picker closes and I see 13/22/5774, 12:00 AM. This date is flagged as invalid date due to dojox/date/hebrew/locale.js _buildDateTimeRE method having the following code.

case 'M':

if(locale.match('he(?:-.+)?$')){

s = (l>2) ? '
S+ ?
S+' : '
S{1,4}';

}else{

s = (l>2) ? '
S+ ?
S+' : p2+'[1-9]|1[0-2]';

} break;

Please notice the RE for Hebrew month indicates there is only 12 months in a year; however, Hebrew supports 13 months in a year for leap years.

Change History (3)

comment:1 Changed 5 years ago by bill

Owner: set to hhelena
Status: newassigned

Helena, looks like this code originally came from you.

comment:3 Changed 5 years ago by cjolif

Milestone: tbd1.9.4
Resolution: fixed
Status: assignedclosed

fixed in master, 1.10 and 1.9

Note: See TracTickets for help on using tickets.