Skip to content

Commit 2784c1b

Browse files
authored
Merge pull request #3917 from RKBoss6/modclk
[Modern Clock] Fix clearing of date
2 parents 853e395 + ab40985 commit 2784c1b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

apps/modclock/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
0.01: App created w/ clockInfos, bold font, date and time.
22
0.02: Added text truncation for long ClockInfo strings.
33
0.03: Added small inline Clock Info next to date
4+
0.04: Fix date not clearing

apps/modclock/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ let draw = function() {
209209
g.setFont("Vector",16);
210210
g.setFontAlign(1,0); // align center bottom
211211
// pad the date - this clears the background if the date were to change length
212-
var dateStr = require("locale").dow(new Date(), 1)+", " +new Date().getDate();
212+
var dateStr = " "+require("locale").dow(new Date(), 1)+", " +new Date().getDate();
213213
//print(g.stringHeight(dateStr));
214214
g.drawString(" "+dateStr+" ", g.getWidth()/2+6, Y+9, true /*clear background*/);
215215

apps/modclock/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Modern Clock",
44
"shortName":"Modern Clk",
55
"icon": "icon.png",
6-
"version":"0.03",
6+
"version":"0.04",
77
"description": "A modern, simple clock, with three ClockInfos and Fast Loading",
88
"type":"clock",
99
"tags": "clock,clkinfo",

0 commit comments

Comments
 (0)