From 8913758a24a0a75d782f0c3d6d25fbb72c9f5009 Mon Sep 17 00:00:00 2001 From: Konrad Rieck Date: Mon, 27 Jul 2026 20:39:30 +0200 Subject: [PATCH] Fix wrong July day count in deadline_face settings table The local days_in_month table in _increment_date() listed July as having 30 days instead of 31, diverging from the correct table in _days_in_month(). This made July 31 unreachable when incrementing the day field in settings mode. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01PSucp94GA31sshe5AjvSzQ --- watch-faces/complication/deadline_face.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watch-faces/complication/deadline_face.c b/watch-faces/complication/deadline_face.c index ebad0e8b..f1254c7e 100644 --- a/watch-faces/complication/deadline_face.c +++ b/watch-faces/complication/deadline_face.c @@ -227,7 +227,7 @@ static void _correct_time_difference(int16_t *units, watch_date_time_t deadline) /* Increment date in settings mode. Function taken from `set_time_face.c` */ static void _increment_date(deadline_state_t *state, watch_date_time_t date_time) { - const uint8_t days_in_month[12] = { 31, 28, 31, 30, 31, 30, 30, 31, 30, 31, 30, 31 }; + const uint8_t days_in_month[12] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; switch (state->current_page) { case 0: