Skip to content

Commit 1a7e295

Browse files
committed
woops missed leading zero on mins
1 parent eb73726 commit 1a7e295

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MagTag_SimpleClock/code.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
hour = now[3]
3030
minute = now[4]
3131
if HOUR_MODE_24:
32-
timestr = "%d:%2d" % (hour, minute)
32+
timestr = "%d:%02d" % (hour, minute)
3333
else:
3434
is_pm = (hour >= 12)
3535
hour %= 12
3636
if hour == 0:
3737
hour = 12
38-
timestr = "%d:%2d" % (hour, minute)
38+
timestr = "%d:%02d" % (hour, minute)
3939
if timestr != last_timestr:
4040
magtag.set_text(timestr)
4141
last_timestr = timestr

0 commit comments

Comments
 (0)