Fix error when loading data in fixed shift planning
Update dayOfWeek calculation to use correct timestamp in weekData generation. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e5565357-90e1-419f-b9a8-6ee8394636df Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/6d543d2c-20b9-4ea6-93fe-70fe9b1d9f80/e5565357-90e1-419f-b9a8-6ee8394636df/1nTItRR
This commit is contained in:
parent
f18e85e79a
commit
0b8392808f
@ -1082,7 +1082,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
|
||||
weekData.push({
|
||||
date: dayStr,
|
||||
dayOfWeek: format(currentDay, "EEEE"),
|
||||
dayOfWeek: format(currentDayTimestamp, "EEEE"),
|
||||
sites: sitesData,
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user