samedi 30 octobre 2021

Changed time zone in request

I'm sending moment object in request, but unfortunately the date is changing. For example when I choosed some date and I write to console, the date is ok, but in the request time is few hour early what is change the date.

console: Fri Oct 01 2021 00:00:00 GMT+0200 - ok, In sent json: "2021-09-30T22:00:00.000Z" - wrong

Why it happens and how to fix it.




Aucun commentaire:

Enregistrer un commentaire