Vertical align date string

master
Paul Cockrell 2020-04-04 11:05:51 +01:00
parent 16ea9a8167
commit 3f6e4b630e
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ function drawDate(date) {
let dateStr = locale.date(date, true);
dateStr = dateStr.replace(date.getFullYear(), "").trim().replace(/\/$/i,"");
dateStr = locale.dow(date, true) + " " + dateStr;
g.drawString(dateStr, (W - g.stringWidth(dateStr))/2, 0);
g.drawString(dateStr, (W - g.stringWidth(dateStr))/2, 1);
}
function redraw() {