Subj : Run JS with a different TZ To : nelgin From : Digital Man Date : Thu Oct 12 2023 12:03 pm Re: Run JS with a different TZ By: nelgin to All on 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? :) How does your script use the timezone currently? Could that usage be updated to allow you to control the timezone used at run time (e.g. with a command-line option)? -- digital man (rob) Synchronet "Real Fact" #59: Synchronet swag used to be available for purchase at cafepress.com/synchronet Norco, CA WX: 79.0øF, 24.0% humidity, 4 mph NW wind, 0.00 inches rain/24hrs .