diff --git a/code/src/Helpers/JSONParser.ts b/code/src/Helpers/JSONParser.ts index e408d811..04da77fc 100644 --- a/code/src/Helpers/JSONParser.ts +++ b/code/src/Helpers/JSONParser.ts @@ -57,7 +57,10 @@ namespace Helper { const leaf = binding.shift(); if (object[leaf] !== undefined) { - object[leaf] = (object[leaf] as Date).toISOString().substr(0, 10); + const dt = (object[leaf] as Date); + object[leaf] = new Date(dt.getTime() - dt.getTimezoneOffset() * 60000) + .toISOString() + .substr(0, 10); } } }