Subj : Run JS with a different TZ
To : Charles Blackburn
From : nelgin
Date : Sat Oct 14 2023 10:09 pm
Re: Run JS with a different TZ
By: Charles Blackburn to nelgin on Sat Oct 14 2023 10:58:43
> function convertTZ(date, tzString) {
> return new Date((typeof date === "string" ? new Date(date) :
> date).toLocaleString("en-US", {timeZone: tzString}));
> }
You did actually try this and discovred it doesn't actually work, right?
---
� Synchronet � End Of The Line BBS - endofthelinebbs.com