Date/time picker timezone set

Bala19
Tera Contributor

Hello All,

is there any way to set the timezone to PDT for date/time picker?

Currently it shows GMT timezone

 

Thanks

Bala

3 REPLIES 3

amaradiswamy
Kilo Sage

Hi,

Are you talking about ootb data time picker? In servicenow, the date time picker will show date time in current logged in user if the time zone field is filled in user record, otherwise it will show based on system time zone.

If you want to change system time zone then refer to below

https://docs.servicenow.com/bundle/geneva-servicenow-platform/page/administer/time/task/t_SetASystem...

Bala19
Tera Contributor

Thank you for the response. I have created a variable set with type as date/time and it is scoped application. So when I click on the field it has to show the specific timezone which required. thank you

If I were, I will do below.

1. Create a date/time variable

2. Create a string field and this will be read-only by default.

3. Create onchange client script on date/time variable, convert it into PDT and copy this value to string field created i step #2.

Refer to below to know how to convert a date to a desired time zone.

https://community.servicenow.com/community?id=community_question&sys_id=4714cfe5dbd8dbc01dcaf3231f96...