My application in crashing when the user taps on the compact style Datepicker on iOS 14 when in the month of February only and Beirut Timezone.
Steps to reproduce error:
- Open a new Xcode project targetting iOS 14 at least
- Place a datepicker in the storyboard (By default, the style is Automatic and the mode is Date and Time)
- Run on iOS 14 simulator or device
- Make sure the date is in the month of february and your timezone is set to Beirut
- Tap on the datepicker
Expected behavior: A dialog should open showing the full datepicker menu
Actual Behavior: App crashing
Error:
Exception NSException * "Invalid calculation: number of calculated days is not dividable by the number of days in a week."
Is anyone having a similar issue?