Open markuspalme opened 4 months ago
Verified the behaviour on MacOS and iOS (net8-ios
TFM).
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.
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