-
-
Notifications
You must be signed in to change notification settings - Fork 288
[Bug]: ForcedDateTimeKind
not working
#933
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
Comments
Verified the behaviour on MacOS and iOS ( |
Maybe this has the same cause as #787. I could work on a fix, but would like to have confirmation that the current behavior is indeed not the expected one first. |
Currently having this issue, we get a json from an API, convert into an object, and store that in this dataservice. The received date is ex 10:36:40, and the second time we get the data, it gets retrieved from the BlobCache, it gets returned as 08:36:40. Tried all the various ForcedDateTimeKind settings. |
A workaround I found is to set In my particular use case, I had to use
|
Describe the bug 🐞
When reading back a
DateTime
with kindUnspecified
andForcedDateTimeKind = DateTimeKind.Unspecified
, the resulting date has kindUtc
and has has been converted to UTC which is unexpected.Step to reproduce
Run this code:
Reproduction repository
https://github.com/reactiveui/ReactiveUI
Expected behavior
The date that is read from the cache should be the same (same value and kind) as the one that is inserted.
Screenshots 🖼️
IDE
No response
Operating system
MacOS, iOS
Version
10.0.1
Device
No response
ReactiveUI Version
No response
Additional information ℹ️
No response
The text was updated successfully, but these errors were encountered: