Skip to content
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

[BUG] UTC time #787

Open
proximus323 opened this issue Jun 6, 2022 · 3 comments
Open

[BUG] UTC time #787

proximus323 opened this issue Jun 6, 2022 · 3 comments
Labels

Comments

@proximus323
Copy link

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 proximus323 added the Bug label Jun 6, 2022
@proximus323 proximus323 changed the title [BUG] Summary of item [BUG] UTC time Jun 6, 2022
@GUOLDEV
Copy link

GUOLDEV commented Dec 14, 2022

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
Copy link

Any update? I have same problem

@bradizzie
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants