Skip to content

[Modern Clock] Fix clearing of date #3917

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/modclock/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
0.01: App created w/ clockInfos, bold font, date and time.
0.02: Added text truncation for long ClockInfo strings.
0.03: Added small inline Clock Info next to date
0.04: Fix date not clearing
2 changes: 1 addition & 1 deletion apps/modclock/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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*/);

Expand Down
2 changes: 1 addition & 1 deletion apps/modclock/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Modern Clock",
"shortName":"Modern Clk",
"icon": "icon.png",
"version":"0.03",
"version":"0.04",
"description": "A modern, simple clock, with three ClockInfos and Fast Loading",
"type":"clock",
"tags": "clock,clkinfo",
Expand Down