Skip to content

Support for non-gregorian calendars on iOS #57

@wongpeiyi

Description

@wongpeiyi

iOS user was experiencing a crash on opening datepicker:

NSRangeException
*** -[__NSArrayM objectAtIndex:]: index 9223372036854775807 beyond bounds [0 .. 1]

On some investigation the likely cause seems to be a non-Gregorian calendar setting (e.g. Buddhist), which changes the year from 2022 to something like 2565 BE

We are using v2.1.2 with a maxDate (which I suspect is causing the range exception)

I understand this is a rare use case, but wondering if there might be a simple fix that doesn't result in a crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions