Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(DateTime) "getLocalizedPattern" is incorrect for Chinese locale #57

Open
zhzhh7378 opened this issue May 23, 2023 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@zhzhh7378
Copy link

If the “local” is in China,
com.maxkeppeler.sheets.date_time.utils.getLocalizedPattern() result is
”pattern=y年M月d日“
then
com.maxkeppeler.sheets.date_time.utils.getLocalizedValues()
image
Unable to obtain correct results

@maxkeppeler
Copy link
Owner

对不起... I've to use a locale specific approach for splitting. In this case, for Chinese, the pattern doesn't include a delimiter symbol but just characters which are the delimiters. 年 year, 月 month, 日 day, which should be removed and treated just like ":" etc. I will look into this if I have spare time!

@maxkeppeler maxkeppeler self-assigned this May 24, 2023
@maxkeppeler maxkeppeler added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels May 24, 2023
@maxkeppeler maxkeppeler changed the title "getLocalizedPattern" is incorrect (DateTime) "getLocalizedPattern" is incorrect for Chinese locale May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants