Opened 6 years ago
Closed 6 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{
} 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 6 years ago by
Owner: | set to hhelena |
---|---|
Status: | new → assigned |
comment:3 Changed 6 years ago by
Milestone: | tbd → 1.9.4 |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
fixed in master, 1.10 and 1.9
Helena, looks like this code originally came from you.