Fix short day format
This commit is contained in:
parent
5a22c73834
commit
3784285695
2
time.ts
2
time.ts
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user