This is for adjust date time while sending and receiving date time in different time zone
$ npm i adjust-timezone
client-side: get timezone offset with getTimezoneOffset() and send to server woth API
const clientOffset = new Date().getTimezoneOffset();
const clientDate = from_client;
const { adjustTimezone } = require("adjust-timezone");
const direction = 'CLIENT_TO_SERVER'
const inServerTimeDate = adjustTimezone(clientDate, clientOffset, direction)
const { adjustTimezone } = require("adjust-timezone");
const direction = 'SERVER_TO_CLIENT'
const inClientTimeDate = adjustTimezone(clientDate, clientOffset, direction)