wip
This commit is contained in:
parent
f29613e55f
commit
28ed131b9e
6 changed files with 151 additions and 90 deletions
|
|
@ -40,12 +40,8 @@ export class GridManager {
|
|||
}
|
||||
|
||||
private getWeekStart(date: Date): Date {
|
||||
const weekStart = new Date(date);
|
||||
const day = weekStart.getDay();
|
||||
const diff = weekStart.getDate() - day; // Sunday is 0
|
||||
weekStart.setDate(diff);
|
||||
weekStart.setHours(0, 0, 0, 0);
|
||||
return weekStart;
|
||||
// Use DateUtils for consistent week calculation (Sunday = 0)
|
||||
return DateUtils.getWeekStart(date, 0);
|
||||
}
|
||||
|
||||
private findElements(): void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue