started adding day of week

This commit is contained in:
Josh 2024-05-15 19:53:55 -06:00
parent 8145f5d321
commit c29b1915ff

View File

@ -138,7 +138,8 @@ void WatchFaceGravel::Refresh() {
currentDate = std::chrono::time_point_cast<std::chrono::days>(currentDateTime.Get());
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);
}