mirror of https://github.com/espruino/BangleApps
sliding clock: Bug fix day no incorrect
parent
80ddde9718
commit
c098bcb88f
|
@ -36,7 +36,7 @@ class EnglishDateFormatter extends DateFormatter {
|
||||||
const hours_txt = hoursToText(date.getHours());
|
const hours_txt = hoursToText(date.getHours());
|
||||||
const mins_txt = numberToText(date.getMinutes());
|
const mins_txt = numberToText(date.getMinutes());
|
||||||
const day_of_week = dayOfWeek(date);
|
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);
|
const month = monthToText(date);
|
||||||
return [hours_txt,mins_txt[0],mins_txt[1],day_of_week,date_txt,month];
|
return [hours_txt,mins_txt[0],mins_txt[1],day_of_week,date_txt,month];
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@ class EnglishTraditionalDateFormatter extends DateFormatter {
|
||||||
}
|
}
|
||||||
formatDate(date){
|
formatDate(date){
|
||||||
const day_of_week = dayOfWeekShort(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();
|
const mins = date.getMinutes();
|
||||||
var hourOfDay = date.getHours();
|
var hourOfDay = date.getHours();
|
||||||
if(mins > 30){
|
if(mins > 30){
|
||||||
|
|
Loading…
Reference in New Issue