fix(radio): Limit year range for RTC to prevent overflow (#4124)

This commit is contained in:
philmoz
2023-10-03 10:59:29 +10:00
committed by GitHub
parent 776b64c469
commit a9f468e82a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ class DateTimeWindow : public FormWindow {
// Date
auto line = newLine(&grid);
new StaticText(line, rect_t{}, STR_DATE, 0, COLOR_THEME_PRIMARY1);
year = new NumberEdit(line, rect_t{}, 2018, 2100,
year = new NumberEdit(line, rect_t{}, 2023, 2037,
[=]() -> int32_t {
return TM_YEAR_BASE + m_tm.tm_year;
},