Closed HosamHasanRamadan closed 1 month ago
Nice, thanks! This looks good but looking at browser compatibility this will limit the compatibility of this plugin to browsers released within the last two years or so.
Is there any way we could do something lie this to check if supportedValuesOf
is available before calling it?
@tjarvstrand
I changed the code a little bit to fallback to old behavior if supportedValuesOf
is not supported on current browser
Sorry for the delay, I had to take the time to download an older browser version.
LGTM, thanks for the contribution! ❤️
This fix is now available in the 3.0.0 version on pub.dev
On web
getAvailableTimezones
returns the same result asgetLocalTimezone
. This PR fixes this issue