Subj : Run JS with a different TZ
To   : Digital Man
From : nelgin
Date : Fri Oct 13 2023 01:47 pm

 Re: Run JS with a different TZ
 By: Digital Man to nelgin on Fri Oct 13 2023 10:51:43

> That didn't really answer my question: How is your script using the timezone
> currently?

Oh, I'm reading a JSON file which has an ISO 8601 format date, then I'm passing that to something like d = new Date(isoDate); to create a date object so I can extract the time easier, I think I use strftime to get HH:MMa/p but, of course, the time I get is in central and not eastern. I can't just subtract an hour because that's not going to work during DST changes.

I hate to use something like moment-timezone for something like that, but it might be my only option unless you can think of something, I'm at a loss.
---
� Synchronet � End Of The Line BBS - endofthelinebbs.com