How to convert GMT to user current time zone

shaik_irfan
Tera Guru

 

hi,

 

When i pull the updated on date i am getting in GMT time zone can anyone please help me how to convert that to local user time zone

1 ACCEPTED SOLUTION

you should use getDisplayValueInternal() method.

 

Note: it will return date and time values for the GlideDateTime object in the current user's time zone 

 

doc link for further details. 

 

https://developer.servicenow.com/dev.do#!/reference/api/orlando/server/no-namespace/c_APIRef#r_Scope...

 

 

View solution in original post

7 REPLIES 7

Tanushree Doiph
Mega Guru

Hey,

Refer below link,

https://community.servicenow.com/community?id=community_question&sys_id=5e434fe1dbd8dbc01dcaf3231f9619ba

Thanks


Tanushree

rajneeshbaranwa
Giga Guru

Is it only for you or all users ? Do you need this functionality only for you or others as well ? 

 

IF this is happening only for you not for other users. You cans set your profile timezone to your local date/time.

 

If it is for all users then you can use method suggested by Ankur below.

 

Please mark my answer correct/helpful, If it helped you

 

Kunal Varkhede
Tera Guru

Hi,

 

Change Time zone from mechanical gear box(Go to the top right of banner - select Mechanical gear box -> change system setting in general -> TimeZone)

find_real_file.png

Thanks,

Kunal.