Repository navigation
Use the invariant culture when parsing JSON TimeOnly values - #39069
Merged
AndriySvyryd merged 1 commit intoSep 22, 2026
Merged
AndriySvyryd merged 1 commit into
AndriySvyryd merged 1 commit into
Conversation
Member
|
This is mostly a duplicate of #38959. |
The other Sqlite JSON reader/writers (DateTime, DateTimeOffset, decimal) and the core JsonTimeOnlyReaderWriter already parse and format with CultureInfo.InvariantCulture; align the TimeOnly one with them. Co-Authored-By: Claude Fable 5.1 <[email protected]>
ilkertskn
force-pushed
the
fix/scaffolding-invariant-culture-parsing
branch
from
September 22, 2026 22:20
877282a to
5a6bf4e
Compare
Contributor
Author
|
done. i ve kept only the changes for SqliteJsonTimeOnlyReaderWriter |
AndriySvyryd
approved these changes
Sep 22, 2026
AndriySvyryd
left a comment
Member
There was a problem hiding this comment.
Thanks for your contribution!
AndriySvyryd
pushed a commit
that referenced
this pull request
Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SqliteDatabaseModelFactory and SqlServerDatabaseModelFactory parsed DateTime, DateOnly, TimeOnly and DateTimeOffset default value literals with the current culture. Under cultures whose default calendar is not Gregorian (e.g. ar-SA) an ISO date such as '1968-10-23' fails to parse and the default value is silently dropped from the scaffolded model. The same applies to the Sqlite CLR type inference over min/max values.
SqliteJsonTimeOnlyReaderWriter is aligned with the other Sqlite JSON reader/writers, which already read and write with the invariant culture.