Programmatically Change A Google Apps Script's Timezone
I've been having a very hard time trying to properly set up the timezones of calendar event dates because the Javascript's Date object is taking the project's timezone: . Is there
Solution 1:
No. The project time zone can not be changed with code. You can get the script time zone Session.getScriptTimeZone() with code, but you can not set it with code. You shouldn't be changing the script time zone in code anyway. I'm assuming that you have users who are in different time zones? If there are multiple users of the script in different time zones, then I set the Time Zone in the script to +GMT 00:00 no daylight savings. And leave it at that.
Post a Comment for "Programmatically Change A Google Apps Script's Timezone"