Opened 6 years ago
Last modified 4 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: |
Description
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)
Change History (3)
Changed 6 years ago by
Attachment: | japaneseHijri.PNG added |
---|
comment:1 Changed 5 years ago by
Milestone: | tbd → 1.12 |
---|
comment:2 Changed 4 years ago by
Milestone: | 1.13 → 1.15 |
---|
Note: See
TracTickets for help on using
tickets.
Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.