Fixed the date shown in the about section of the settings, months were off by one ...
This commit is contained in:
parent
ece0d08ae7
commit
f5d3e33dab
@ -855,7 +855,7 @@ static void _set_rtc_time_to_label(SettingsScreen_t * const settingsScreen)
|
||||
settingsScreen->settingsScreenAPIInterface.setTimeSettingsCb(&hour, &minute, &second, &day, &month, &year, SETTING_MODE_GET);
|
||||
sprintf(settingsScreen->currentTime.current_time_text, "%u:%u:%u %s%u/%s%u/%u", hour, minute, second,
|
||||
day < 10 ? "0":"", day,
|
||||
month + 1 < 10 ? "0":"", month,
|
||||
month + 1 < 10 ? "0":"", month + 1,
|
||||
year+1900);
|
||||
lv_label_set_text_static(settingsScreen->currentTime.current_time_label, settingsScreen->currentTime.current_time_text);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user