Subj : Run JS with a different TZ
To   : All
From : nelgin
Date : Thu Oct 12 2023 01:29 pm

I have a script that I want to run using a different timezone. My system is America/Chicago and I want users to run it from the xtrn section as America/New_York.


My original ideas was to create a bash wrapper script to set TZ and call jsexec but wont work since it requires various bbs and console functions to work properly.

Also, javascript doesn't appear to let you set an environment variable like you can with other languages such as perl.

Since I don't want to run my server or BBS in eastern time, does anyone have any suggestons on a workaround, other than to rewrtite it in perl? :)
---
� Synchronet � End Of The Line BBS - endofthelinebbs.com