Skip to content

Commit 3afedca

Browse files
committed
time format
1 parent 471a4c9 commit 3afedca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/displayapp/screens/WatchFaceTerminal.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void WatchFaceTerminal::Refresh() {
231231
if ((year != currentYear) || (month != currentMonth) || (dayOfWeek != currentDayOfWeek) || (day != currentDay)) {
232232

233233
char dateStr[38];
234-
sprintf(dateStr, "[DATE]#007fff 20%d.%02d.%02d#", char(year-2000), char(month), char(day));
234+
sprintf(dateStr, "[DATE]#007fff %04d.%02d.%02d#", short(year), char(month), char(day));
235235
lv_label_set_text(label_date, dateStr);
236236

237237

0 commit comments

Comments
 (0)