sliding clock: Bug fix day no incorrect

pull/2178/head
adrian w kirk 2022-10-05 23:50:24 +01:00
parent 80ddde9718
commit c098bcb88f
2 changed files with 2 additions and 2 deletions

View File

@ -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];
}

View File

@ -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){