datarecall 0 Posted November 14, 2011 Report Share Posted November 14, 2011 Hey Guys, I am trying to make a bot that will take the current time -1hr for timezone difference and add another 25 minutes, or just -35 Minutes. Has something like this been done? Any help is appreciated. Quote Link to post Share on other sites
JohnB 255 Posted November 26, 2011 Report Share Posted November 26, 2011 I thought I had a script for this, but am unable to find it. I will work on a new solution for you. Although sometimes the best solution is to scrape the time from a site that displays it in the timezone you want. John Quote Link to post Share on other sites
Bob The Builder 62 Posted November 29, 2012 Report Share Posted November 29, 2012 I had to do this myself, and I noticed there wasn't any help on this anywhere. Here is how I did it, works pretty good. I am subtracting 3 hours to compensate for the time difference. Just change it to how many miliseconds to you need to compensate for. set(#date, $eval("var now = new Date(); var d = new Date(now - 10800000) d.getFullYear() + \'.\' + (d.getMonth()+1) + \'.\' + d.getDate();"), "Global") 1 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.