You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error if iOS device preferred device language other than English.
Easy t test, just switch language from device Settings > General > Language & Region > Make any other language first on Preferred Language order.
Date picker will report error "Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value!" in CalendarHelper.swift "return date!" line 89
The text was updated successfully, but these errors were encountered:
Changing BDate.swift getMonths() class to the following fixes the issue
class func getMonths() -> [String]{
//return ["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"]
let formatter = DateFormatter()
let monthComponents = formatter.shortMonthSymbols
return monthComponents!
}
As it uses localised month short strings to visualise month in picker and uses same values to parse date from string in CalendarHelper.swift (let date = dateFormatter.date(from: "(currentMonth)/(currentDay)/(currentYear)"))
Error if iOS device preferred device language other than English.
Easy t test, just switch language from device Settings > General > Language & Region > Make any other language first on Preferred Language order.
Date picker will report error "Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value!" in CalendarHelper.swift "return date!" line 89
The text was updated successfully, but these errors were encountered: