Opened 7 years ago

Last modified 5 years ago

#18364 new defect

Error when picking a date from the Hijri calender when using Japanese or Chinese language

Reported by: cstephe Owned by:
Priority: undecided Milestone: 1.15
Component: Date Version: 1.9.2
Keywords: Cc:
Blocked By: Blocking:


In dojox/date/islamic/locale.js th function ilocale.parse returns the wrong year when the locale is Chinese or Japanese. From our investigation the regex listed below is taking a date like this: 1435-9-18 and returning [143,5,9,18] rather than [1435,5,9,18] which would be correct.

var regexp = info.regexp.replace(/[\u200E\u200F\u202A\u202E]/g, ""); //remove bidi non-printing chars from the pattern
var re = new RegExp("^" + regexp + "$");

Attachments (1)

japaneseHijri.PNG (15.8 KB) - added by cstephe 7 years ago.

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by cstephe

Attachment: japaneseHijri.PNG added

comment:1 Changed 6 years ago by dylan

Milestone: tbd1.12

comment:2 Changed 5 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.