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

 Re: Run JS with a different TZ
 By: nelgin to Digital Man on 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.

Does the ISO 8601 formatted date include the UTC offset?
--
                                           digital man (rob)

Synchronet/BBS Terminology Definition #9:
BPS = Bits Per Second
Norco, CA WX: 75.9�F, 45.0% humidity, 0 mph SE wind, 0.00 inches rain/24hrs

---
� Synchronet � Vertrauen � Home of Synchronet � [vert/cvs/bbs].synchro.net