dcefa04db4
Problem: The Date() API creates a date object with the current UTC time, where as when the same object is passed into moment its converted to the local timezone, so when ever the local time zone has moved to the next day and UTC is behind(or vice-versa), one of the tests fail. Fix: Create date objects using moment instead of the Date() API. |
||
---|---|---|
.. | ||
toDayOfWeek.test.js |