From c098bcb88ffc1286c646093a3195686a7ecce068 Mon Sep 17 00:00:00 2001 From: adrian w kirk Date: Wed, 5 Oct 2022 23:50:24 +0100 Subject: [PATCH] sliding clock: Bug fix day no incorrect --- apps/slidingtext/slidingtext.locale.en.js | 2 +- apps/slidingtext/slidingtext.locale.en2.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/slidingtext/slidingtext.locale.en.js b/apps/slidingtext/slidingtext.locale.en.js index 4f5d44ab1..06bd10f90 100644 --- a/apps/slidingtext/slidingtext.locale.en.js +++ b/apps/slidingtext/slidingtext.locale.en.js @@ -36,7 +36,7 @@ class EnglishDateFormatter extends DateFormatter { const hours_txt = hoursToText(date.getHours()); const mins_txt = numberToText(date.getMinutes()); const day_of_week = dayOfWeek(date); - const date_txt = numberToDayNumberText(date.getDate()-1).join(' '); + const date_txt = numberToDayNumberText(date.getDate()).join(' '); const month = monthToText(date); return [hours_txt,mins_txt[0],mins_txt[1],day_of_week,date_txt,month]; } diff --git a/apps/slidingtext/slidingtext.locale.en2.js b/apps/slidingtext/slidingtext.locale.en2.js index da97597aa..3e06659a7 100644 --- a/apps/slidingtext/slidingtext.locale.en2.js +++ b/apps/slidingtext/slidingtext.locale.en2.js @@ -43,7 +43,7 @@ class EnglishTraditionalDateFormatter extends DateFormatter { } formatDate(date){ const day_of_week = dayOfWeekShort(date); - const date_txt = numberToDayNumberText(date.getDate()-1).join(' '); + const date_txt = numberToDayNumberText(date.getDate()).join(' '); const mins = date.getMinutes(); var hourOfDay = date.getHours(); if(mins > 30){