reactiveui / Akavache

An asynchronous, persistent key-value store created for writing desktop and mobile applications, based on SQLite3. Akavache is great for both storing important data as well as cached local data that expires.
https://evolve.xamarin.com/session/56e2044afd00c0253cae33a3
MIT License
2.46k stars 288 forks source link

[BUG] UTC time #787

Open proximus323 opened 2 years ago

proximus323 commented 2 years ago

Describe the bug

Hi, I have an issue with the time zone, od device has set time zone +2 for Poland, data I try to store in the cache have time "date":"2022-06-09T00:00:00" return value is "Date":"2022-06-08T22:00:00Z"

In the code I set BlobCache.ForcedDateTimeKind and BlobCache.Secure.ForcedDateTimeKind for DateTimeKind.Local or DateTimeKind.UTC, this still works the same.

All data from the server have UTC time and cash doesn't hate to change it.

What did I do wrong?

GUOLDEV commented 1 year ago

Any update? I am experiencing the same issue. If I save the Date as UTC I expect to retrieve it as UTC, if saved as Local I expect to get it as Local. Thoughts or workarounds?

sarapura12 commented 1 year ago

Any update? I have same problem

bradizzie commented 1 year ago

The last working version is 6.10.20 on the latest xamarin on the latest iOS. BlobCache.ForcedDateTimeKind = DateTimeKind.Local; works in that version, but none of the newer releases