time format

This commit is contained in:
Дмитрий Марков 2022-01-13 12:27:10 +05:00
parent d3fd348de4
commit 471a4c942f
No known key found for this signature in database
GPG Key ID: 49CFEE49DBF77352

View File

@ -231,7 +231,7 @@ void WatchFaceTerminal::Refresh() {
if ((year != currentYear) || (month != currentMonth) || (dayOfWeek != currentDayOfWeek) || (day != currentDay)) { if ((year != currentYear) || (month != currentMonth) || (dayOfWeek != currentDayOfWeek) || (day != currentDay)) {
char dateStr[38]; char dateStr[38];
sprintf(dateStr, "[DATE]#007fff 20%d.%02d.%02d#", short(year-2000), char(month), char(day)); sprintf(dateStr, "[DATE]#007fff 20%d.%02d.%02d#", char(year-2000), char(month), char(day));
lv_label_set_text(label_date, dateStr); lv_label_set_text(label_date, dateStr);