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

Convert dates back from ISO when parsed #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonadv
Copy link

@jonadv jonadv commented May 14, 2021

When converting a JSON value of type VBA.vbDate, the time value is converted to ISO format, thus adjusting the local time to global time (adding or substracting a few hours). However, when parsing the same json result back, the time unit stays in global time unit. By adding this line of code the conversion happens both ways. See also extended comment here: #169 (comment)

When converting data to a JSON values of type VBA.vbDate, datetimes are converted to ISO format, thus adjusting the local time to global time. However, when parsing the same json result back, the time unit stays in global time unit. By adding this line of code the conversion happens both ways. See also extended comment here: VBA-tools#169 (comment)
@ReneNyffenegger
Copy link

I second this pull request (but I am also not sure if this repository is abandoned as the last commit is 5 years old)

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

Successfully merging this pull request may close these issues.

2 participants