Fix clearing of date

master
RKBoss6 2025-07-01 08:56:20 -04:00 committed by GitHub
parent daafdc8a6b
commit 3d626ca99c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ let draw = function() {
g.setFont("Vector",16);
g.setFontAlign(1,0); // align center bottom
// pad the date - this clears the background if the date were to change length
var dateStr = require("locale").dow(new Date(), 1)+", " +new Date().getDate();
var dateStr = " "+require("locale").dow(new Date(), 1)+", " +new Date().getDate();
//print(g.stringHeight(dateStr));
g.drawString(" "+dateStr+" ", g.getWidth()/2+6, Y+9, true /*clear background*/);