chrono: Resolve TODOs related to C++20 chrono feats

This commit is contained in:
FintasticMan
2024-02-12 13:01:22 +01:00
committed by JF
parent 14c6270903
commit 7dbb8f54c6
10 changed files with 10 additions and 15 deletions

View File

@@ -256,7 +256,7 @@ void WatchFaceAnalog::Refresh() {
if (currentDateTime.IsUpdated()) {
UpdateClock();
currentDate = std::chrono::time_point_cast<days>(currentDateTime.Get());
currentDate = std::chrono::time_point_cast<std::chrono::days>(currentDateTime.Get());
if (currentDate.IsUpdated()) {
lv_label_set_text_fmt(label_date_day, "%s\n%02i", dateTimeController.DayOfWeekShortToString(), dateTimeController.Day());
}