feat: ajoute le jour de la semaine dans les labels demi-semaines
ci/woodpecker/push/woodpecker Pipeline was successful

Ex: "lun. 21 févr. – jeu. 24 févr."

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
syoul
2026-03-23 21:43:13 +01:00
parent 0aea929b48
commit 40c09e2e4b
+1 -1
View File
@@ -47,7 +47,7 @@ function buildFrames(periodDays: number): TimeFrame[] {
const from = cursor;
const to = Math.min(cursor + HALF_WEEK, now);
frames.push({
label: `${fmt(from, { day: 'numeric', month: 'short' })} ${fmt(to - 1, { day: 'numeric', month: 'short' })}`,
label: `${fmt(from, { weekday: 'short', day: 'numeric', month: 'short' })} ${fmt(to - 1, { weekday: 'short', day: 'numeric', month: 'short' })}`,
from,
to,
});