started adding day of week
This commit is contained in:
parent
8145f5d321
commit
c29b1915ff
@ -138,7 +138,8 @@ void WatchFaceGravel::Refresh() {
|
|||||||
|
|
||||||
currentDate = std::chrono::time_point_cast<std::chrono::days>(currentDateTime.Get());
|
currentDate = std::chrono::time_point_cast<std::chrono::days>(currentDateTime.Get());
|
||||||
if (currentDate.IsUpdated()) {
|
if (currentDate.IsUpdated()) {
|
||||||
lv_label_set_text_fmt(labelDate, "%d %s", dateTimeController.Day(), dateTimeController.MonthShortToString());
|
Controllers::DateTime::Days dayOfWeek = dateTimeController.DayOfWeek();
|
||||||
|
lv_label_set_text_fmt(labelDate, "%s %d %s", dateTimeController.DayOfWeekShortToStringLow(dayOfWeek), dateTimeController.Day(), dateTimeController.MonthShortToString());
|
||||||
}
|
}
|
||||||
lv_obj_realign(labelDate);
|
lv_obj_realign(labelDate);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user