-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Support nanosecond precision as far as possible with DateTimeOffset
This fixes #2575, for both parsing and formatting. It does mean that `x.CreateTimestamp = x.CreateTimestamp` potentially loses information (2023-10-27T10:32:45.123456789Z would become 2023-10-27T10:32:45.123456700Z) but that's the best we can do. This doesn't change the DateTime handling at all; it's still brokenly-culture-sensitive, and only formats to millisecond precision. The generated DateTime properties are now obsolete though, so it's probably best to leave them as they are.
- Loading branch information
Showing
2 changed files
with
105 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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