Closed tmcconechy closed 5 years ago
To test this issue:
1) http://localhost:4000/components/datepicker/example-index.html?locale=ar-SA 2) click today (the button on the right). It should insert a date with 1440.
(Can verify against https://www.staff.science.uu.nl/~gent0113/islam/ummalqura_converter.htm)
This issue is now resolved. Moving this ticket to the Done folder.
Describe the bug
As found on the failing build https://travis-ci.com/infor-design/enterprise/jobs/157254117#L2399 there is a bug in the setToday function of the calendar. It stems from https://github.com/infor-design/enterprise/blob/master/src/components/datepicker/datepicker.js#L1536 basically its not current to use a Date() type here and assume it will convert. We need to use arrays for islamic date because this is converting it back to Gregorian
To Reproduce Steps to reproduce the behavior:
$('#date-field-normal').data('datepicker').setToday()