We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4669be commit 265fec5Copy full SHA for 265fec5
1 file changed
src/displayapp/screens/WatchFaceTerminal.cpp
@@ -154,9 +154,9 @@ void WatchFaceTerminal::Refresh() {
154
auto time = date::make_time(newDateTime - dp);
155
auto yearMonthDay = date::year_month_day(dp);
156
157
- auto year = (int) yearMonthDay.year();
158
- auto month = static_cast<Pinetime::Controllers::DateTime::Months>((unsigned) yearMonthDay.month());
159
- auto day = (unsigned) yearMonthDay.day();
+ auto year = static_cast<int>(yearMonthDay.year());
+ auto month = static_cast<Pinetime::Controllers::DateTime::Months>(static_cast<unsigned>(yearMonthDay.month()));
+ auto day = static_cast<unsigned>(yearMonthDay.day());
160
auto dayOfWeek = static_cast<Pinetime::Controllers::DateTime::Days>(date::weekday(yearMonthDay).iso_encoding());
161
162
int hour = time.hours().count();
0 commit comments