We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Date
1 parent 0f3e717 commit 44ad644Copy full SHA for 44ad644
web_src/js/utils/time.js
@@ -4,8 +4,8 @@ import {getCurrentLocale} from '../utils.js';
4
// Returns an array of millisecond-timestamps of start-of-week days (Sundays)
5
export function startDaysBetween(startDate, endDate) {
6
// Ensure the start date is a Sunday
7
- while (startDate.getDay() !== 0) {
8
- startDate.setDate(startDate.getDate() + 1);
+ while (startDate.getUTCDay() !== 0) {
+ startDate.setUTCDate(startDate.getUTCDate() + 1);
9
}
10
11
const start = dayjs(startDate);
0 commit comments