Fix month string truncation

pull/422/head
Paul Cockrell 2020-05-14 20:10:49 +01:00
parent 315131c9d8
commit cc400677a1
1 changed files with 1 additions and 1 deletions

View File

@ -226,7 +226,7 @@ function drawDate(lastDate) {
if (lastDate != date.toISOString().split('T')[0]) {
const dow = locale.dow(date, 1).toUpperCase();
const dayNum = ("00" + date.getDate()).slice(-2);
const mon = locale.month(date).toUpperCase().slice(-3);
const mon = locale.month(date).toUpperCase().slice(0, 3);
const yr = date.getFullYear().toString().slice(-2);
drawFont(dow + " " + dayNum, "5x5", 40, 159);
drawFont(mon + " " + yr, "5x5", 40, 189);