Schedule Job Run as Timezone

John Doe
Giga Expert

Hi there, I have one schedule Job , in run as field there is person from IST timezone, and in script of schedule Job contains addDaysLocalTime(1) in two places, may  be this is why we're having some conflicts with GMT timezone, so my question is if I remove person from the run as field, which time zone system will use?, If I keep run as field empty

1 ACCEPTED SOLUTION

Valmik Patil1
Kilo Sage

Hi ,

If you make Run as field empty the  it will run by default system account and take time zone of that particular account.

If you want to specify other time zone then there is field called Run as tz where you can specify time zone of your choice

Please refer below KB

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0782227#:~:text=The%20default...

Thanks,

Valmik

View solution in original post

4 REPLIES 4

Abhijit4
Mega Sage

Hi John,

In that case scheduled job gets run by system user and it uses system defined timezone which is stored in one of the system property (don't remember exact property name).

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Thanks and Regards,
Abhijit
Community Rising Star 2022

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Here is the property name 'glide.sys.default.tz'

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Aman Kumar S
Kilo Patron

If you keep it as empty, it will run into some issues related to access issues and also unexpected updated by which will become a pain point in long run to maintain.

You can use system administrator user record in Run as and then it will use the system timezone and your issue should be resolved

Best Regards
Aman Kumar

Valmik Patil1
Kilo Sage

Hi ,

If you make Run as field empty the  it will run by default system account and take time zone of that particular account.

If you want to specify other time zone then there is field called Run as tz where you can specify time zone of your choice

Please refer below KB

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0782227#:~:text=The%20default...

Thanks,

Valmik