Merge pull request #3179 from daboe01/calendarstepper-fix

fixed: prevent timezone shift from reverting month navigation in _CPD…
This commit is contained in:
daboe01 authored and GitHub committed 2026-02-01 19:30:54 +01:00
commit 946362f0d1
1 file changed
+9 -1
+9 -1
View File
@@ -251,7 +251,15 @@
- (void)_displayNextMonth
{
[self setDateValue:[_monthView nextMonth]];
// Copy the date so we don't modify the view's state directly
var nextDate = [[_monthView nextMonth] copy];
// Set to the middle of the month (15th).
// This prevents [setDateValue:]'s timezone adjustment from
// shifting the date back into the previous month (e.g., Nov 1 -> Oct 31).
nextDate.setDate(15);
[self setDateValue:nextDate];
}
- (void)_displayPreviousMonth