Get time zone

Here is how to get time zone where you run a script.

Source Code

function myFunction(){
  // America/New_York
  Browser.msgBox(Session.getTimeZone());
}

Format

Session.getTimeZone()

Return

Time zone object

How to change the time zone?

Open “File” -> “Project properties” and select a time zone you want to use on the info tab.

Leave a Comment