Skip to content

Commit

Permalink
Update src/displayapp/screens/WatchFaceTerminal.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: NeroBurner <pyro4hell@gmail.com>
  • Loading branch information
13werwolf13 and NeroBurner committed Feb 2, 2022
1 parent b4669be commit 265fec5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/displayapp/screens/WatchFaceTerminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ void WatchFaceTerminal::Refresh() {
auto time = date::make_time(newDateTime - dp);
auto yearMonthDay = date::year_month_day(dp);

auto year = (int) yearMonthDay.year();
auto month = static_cast<Pinetime::Controllers::DateTime::Months>((unsigned) yearMonthDay.month());
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());
auto dayOfWeek = static_cast<Pinetime::Controllers::DateTime::Days>(date::weekday(yearMonthDay).iso_encoding());

int hour = time.hours().count();
Expand Down

0 comments on commit 265fec5

Please sign in to comment.