I can get local date and time from a timestamp by IANA time zone name through this way:
let dateString = timestamp.toLocaleString('en-GB', { timeZone: "America/New_York" });
But what about time zone offset? I get the offset in client side by getTimezoneOffset
which returns offset in minutes like -120 or +260.
Client sends their offset to server. Server (Node) must turn the timestamps (Stored in DB) to their local date time and send it back.
My clients use old version of JS. So Intl
is not available.