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

Fix issue when fromat string starts with [$-F800] and [$-F400] #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GradlonGwen
Copy link

Fix bug described in issue #41 where the formatted date was incorrect when the format started with "[$-F800]".

Even if not really documented (or very hard to find), locale id F800 seems to refer to the system long date.
This PR adds code to parse totally the locale id, and use it in the parser for date and time.

When parsing the date, if the locale id is F800, then the culture LongDatePattern is used instead of the tokens found with the tokeniser.

When parsing the date, the tokens are replaced with tokens generated from the culture LongTimePattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants