Fix short day format

This commit is contained in:
Brandon Presley 2022-10-28 19:04:05 +13:00
parent 5a22c73834
commit 3784285695
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ function twelveHour(twentyFourHour: string) {
function dayOfWeek(iso: string) { function dayOfWeek(iso: string) {
const date = new Date(iso); const date = new Date(iso);
const day = date.getDay(); const day = date.getDay();
const target = DAYS[day === 0 ? 0 : day - 1]; const target = DAYS[day];
return target.slice(0, 3); return target.slice(0, 3);
} }