Workspace client side alternate of "g_user_date_time_format" and "g_tz_offset"

SouravLinkuna
Tera Contributor

I am working on Client Script for Workspace. I want to use "g_user_date_time_format" and "g_tz_offset" but these apis are not available on the workspace. Is there any client equivalent of these two?

 

NOTE: I don't want to use GlideAjax for now. I want to explore client side logic only to avoid any asynchronous calls.

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@SouravLinkuna 

I don't think you have similar properties available for workspace client script

you will have to use GlideAjax in workspace client script of your UI action

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader