From 99e82cde75814b9ddc46218fe98b6d467755f2df Mon Sep 17 00:00:00 2001
From: ConfuSomu
Date: Sat, 1 May 2021 17:42:09 -0400
Subject: Fix incorrect month displayed

---
 apps/settings/main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'apps')

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"};
-- 
cgit v1.2.3-54-g00ecf