diff options
author | ConfuSomu | 2021-05-01 17:42:09 -0400 |
---|---|---|
committer | ConfuSomu | 2021-05-01 17:42:09 -0400 |
commit | 99e82cde75814b9ddc46218fe98b6d467755f2df (patch) | |
tree | 01367f01b96ee6243b92c3e2fd8280e43c5f3d67 /apps/settings/main.cpp | |
parent | 9e849edf8493daf2b5632ffc4af98093490693e5 (diff) | |
download | pico-watch-99e82cde75814b9ddc46218fe98b6d467755f2df.tar pico-watch-99e82cde75814b9ddc46218fe98b6d467755f2df.tar.gz pico-watch-99e82cde75814b9ddc46218fe98b6d467755f2df.zip |
Fix incorrect month displayed
Diffstat (limited to 'apps/settings/main.cpp')
-rw-r--r-- | apps/settings/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/main.cpp b/apps/settings/main.cpp index c69381b..d701d52 100644 --- a/apps/settings/main.cpp +++ b/apps/settings/main.cpp @@ -77,7 +77,7 @@ namespace app_settings { // See newlib/libc/locale/timelocal.c (mirror @ https://github.com/bminor/newlib/blob/80cda9bbda04a1e9e3bee5eadf99061ed69ca5fb/newlib/libc/locale/timelocal.c#L40) static const char *month_choice[12] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; - datetime.month = app_api->gui_popup_strchoice(choices[choice], SET0_1_DESC, month_choice, 12, 0, -1, datetime.month) + 1; + datetime.month = app_api->gui_popup_strchoice(choices[choice], SET0_1_DESC, month_choice, 12, 0, -1, datetime.month - 1) + 1; } else if (choice == 6) { // Day of week static const char *dotw_choice[7] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; |