Prevent day-of-month overflow
Fixes #1. See comments in #1 for more information about this fix.
This commit is contained in:
parent
6acbeae358
commit
82adb32c17
|
@ -319,8 +319,8 @@
|
|||
*/
|
||||
getYearAnchorString() {
|
||||
const anchorDate = new Date(this.date);
|
||||
anchorDate.setMonth(3); // April
|
||||
anchorDate.setDate(4); // 4th
|
||||
anchorDate.setMonth(3); // April
|
||||
return DoomsdayDate.dayNumberToString(anchorDate.getDay());
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue