Closed Mecharyry closed 1 year ago
Thankss @Mecharyry - can you elaborate on the breaking change? Does it introduce one?
Thankss @Mecharyry - can you elaborate on the breaking change? Does it introduce one?
Sorry I goofed when writing the description. I meant to write that the test class illustrates why parsing an Arabic specific date time breaks vs a US one. I've updated the description.
@stevehobbsdev I'd prefer this solution as well over the other. LGTM 👍
Patch coverage: 97.36
% and project coverage change: -0.08
:warning:
Comparison is base (
4fd061e
) 98.74% compared to head (ead54f2
) 98.67%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
@poovamraj Sorry for the delay, I've made the requested changes!
@poovamraj @stevehobbsdev Can I get some eyes on this? It would be great to merge this so I can stop maintaining a fork 😄
@Mecharyry Thanks for your patience here. We're gearing up for a new release that includes web support, this PR will be included along with that work. We're aiming for that release within the next week or so.
@Mecharyry FYI This has been included in v1.2.0-beta.1, we're expecting this to come out of beta next week 👍🏻
Thanks again for your contrubution!
📋 Changes
Offering as an alternative to https://github.com/auth0/auth0-flutter/pull/206.
This aligns how Android and iOS parse dates. iOS is already formatting dates to
ISO8601String
by directly taking theexpiresAt
property, without modification. Android on the other hand is modifying thisexpiresAt
by allowing it to be localised to whatever the systemsgetDefaultLocale
is.To solve the issues we have seen with
ar
this ensures that all dates are using a consistent Locale ofLocale.US
. The test addedcredentials_test
is used just to illustrate the breaking changeis used to illustrate the issue with Arabic vs US English, but is actually fixed at the native level.📎 References
No references.
🎯 Testing
Put your device into
Arabic
and attempt to use this library to log in. You'll notice that it works in this MR but doesn't onmain