Subj : Run JS with a different TZ
To : Charles Blackburn
From : nelgin
Date : Mon Oct 16 2023 02:06 am
Re: Run JS with a different TZ
By: Charles Blackburn to nelgin on Sun Oct 15 2023 17:55:26
> can't say i did, i'm not a jS programmer, but was just throwing an idea out.
> but there should be a way to do it. In C/Python you can do it
> in a similar way. if the string is in UTC you should be able to internally
> convert it to whatever TZ you want.
Unforuntately, there isn't. That's why there's moment-timezone and Luxon.
Unfortunately Luxon is too modern to work with the sbbs version of js. moment-timezone is no longer developed or supported but at least it works.
---
� Synchronet � End Of The Line BBS - endofthelinebbs.com