Tomorrow Showing Correctly

master
James Clarke 2025-03-06 19:11:38 +00:00
parent df3777bf92
commit 04881a1bd6
1 changed files with 2 additions and 2 deletions

View File

@ -47,8 +47,8 @@ function formatDay(date) {
if (date.getDate() == today.getDate()) if (date.getDate() == today.getDate())
return /*LANG*/"Today "; return /*LANG*/"Today ";
else { else {
const tomorrow = new Date(Date.now()); var tomorrow = new Date();
tomorrow.setDate(today.getDate + 1); tomorrow.setDate(tomorrow.getDate() + 1);
if (date.getDate() == tomorrow.getDate()) { if (date.getDate() == tomorrow.getDate()) {
return /*LANG*/"Tomorrow "; return /*LANG*/"Tomorrow ";
} }