VBA-tools / VBA-JSON

JSON conversion and parsing for VBA
MIT License
1.76k stars 568 forks source link

Convert dates back from ISO when parsed #204

Open jonadv opened 3 years ago

jonadv commented 3 years ago

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: https://github.com/VBA-tools/VBA-JSON/issues/169#issuecomment-841180355

ReneNyffenegger commented 6 months ago

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