Akavache icon indicating copy to clipboard operation
Akavache copied to clipboard

[BUG] UTC time

Open proximus323 opened this issue 2 years ago • 3 comments

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?

proximus323 avatar Jun 06 '22 12:06 proximus323

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?

GUOLDEV avatar Dec 14 '22 05:12 GUOLDEV

Any update? I have same problem

sarapura12 avatar May 17 '23 16:05 sarapura12

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

bradizzie avatar Jun 19 '23 18:06 bradizzie