Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to get logged in users time zone in scoped app?

Priya Shekar
Giga Guru

Hi All,

We used to get logged in users time zone by "gs.getUser().getTZ();"

But in scoped app, we get "Evaluator: org.mozilla.javascript.EcmaError: undefined is not a function." error while using the above code.

Is there any alternative for getTZ()?

Thanks,

Priya

10 REPLIES 10

charmainetham
Kilo Contributor

this worked for me:

find_real_file.png