This project is read-only.
1
Vote

The constructor with (year, month, day, hr, min, sec) arguments does not set the "dow" correctly.

description

When I create a new PersianDate instance like this:
new PersianDate(year, month, day);
and print the object, the day of week "dow" property is incorrect.
There's no problem with other constructors.

comments

ehsan89 wrote Jan 4, 2014 at 10:01 AM

It seems like changing the line 390 of the IntlDate.js file to the following works:
this.dow = date.getDay();

wrote Apr 15, 2014 at 11:12 PM