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

Use InvariantCulture in FlexibleConvert #1363

Merged
merged 1 commit into from
Oct 25, 2019

Conversation

sebastienros
Copy link
Contributor

In Sqlite, DateTime is stored as String, and custom serializers ultimately use Convert.ChangeType to do the conversion. The generated code however doesn't set the Invariant culture, like it's done everywhere else, and the conversion can fail if the current culture doesn't match the standard DateTime serialization format from Sqlite.

In Sqlite, DateTime is stored as String, and custom serializers ultimately use Convert.ChangeType to do the conversion. The generated code however doesn't set the Invariant culture, and the conversion can fail if the current culture doesn't match the standard DateTime serialization format from Sqlite.
@mgravell
Copy link
Member

Looks good, thanks; sorry for the omission

@mgravell mgravell merged commit a18dc63 into DapperLib:master Oct 25, 2019
rhubley pushed a commit to rhubley/Dapper that referenced this pull request Jan 29, 2020
In Sqlite, DateTime is stored as String, and custom serializers ultimately use Convert.ChangeType to do the conversion. The generated code however doesn't set the Invariant culture, and the conversion can fail if the current culture doesn't match the standard DateTime serialization format from Sqlite.
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