We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Priya Shekar
Tera 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