When a date field is sent in a POST request in the local time zone from the client side and received by the body parser, the date gets changed.
The left side shows the client payload and the right side shows what is parsed on the server side:
I suspect it has something to do with the Express time zone, but I'm not sure how to fix it.
I attempted to set the time zone of Node.js by adjusting process.env.TZ
, but the issue persists.