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

DateTime serialization/deserialization being effected by time zones incorrectly. #536

Open
rshuck opened this issue Nov 18, 2021 · 0 comments
Assignees
Labels
need more info open Some team member is working on this

Comments

@rshuck
Copy link

rshuck commented Nov 18, 2021

If in postman I send

curl --location --request POST 'http://localhost:8080/api' \
--header 'Content-Type: application/json' \
--data-raw '{
    "DateIn": "2021-10-30T09:47:58.777Z",
    "DateIn2": "2021-10-31T09:47:58.777Z"
}'

I receive back

{
    "DateIn": "2021-10-30T10:47:58.777+01:00",
    "DateIn2": "2021-10-31T09:47:58.777Z"
}

In the attached example you can see that on serialize/deserialize the DateIn field is begin adjusted by the timezone.
The timezone which effected this is BST and ended 31 Oct. If I send a datetime after this then the timezone offset is not added.

I understand that to reproduce this issue you would have to have your windows regional settings to be a place where you implement a daylight savings time.

SetTest.zip

@danieleteti danieleteti self-assigned this Apr 22, 2022
@danieleteti danieleteti added open Some team member is working on this need more info labels Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info open Some team member is working on this
Projects
None yet
Development

No branches or pull requests

2 participants