Skip to content

Commit

Permalink
Change Tomorrow to weekday (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrudolf authored Jul 7, 2020
1 parent ef05208 commit a6edee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/wui_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ time_t sntp_get_system_time(void) {
system_time.tm_mday = currDate.Date;
system_time.tm_mon = currDate.Month;
system_time.tm_year = currDate.Year;
system_time.tm_wday = currDate.WeekDay;
secs = mktime(&system_time);
return secs;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/gui/screen_printing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ static void update_end_timestamp(screen_t *screen, time_t now_sec, uint16_t prin
strftime(pw->text_etime.data(), MAX_END_TIMESTAMP_SIZE, "Today at %H:%MM", &print_end);
} else if (tommorow.tm_mday == print_end.tm_mday && // if print end is tommorow
tommorow.tm_mon == print_end.tm_mon && tommorow.tm_year == print_end.tm_year) {
strftime(pw->text_etime.data(), MAX_END_TIMESTAMP_SIZE, "Tommorow at %H:%MM", &print_end);
strftime(pw->text_etime.data(), MAX_END_TIMESTAMP_SIZE, "%a at %H:%MM", &print_end);
} else {
strftime(pw->text_etime.data(), MAX_END_TIMESTAMP_SIZE, "%m-%d at %H:%MM", &print_end);
}
Expand Down

0 comments on commit a6edee1

Please sign in to comment.