Date/time picker timezone set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 05:09 AM
Hello All,
is there any way to set the timezone to PDT for date/time picker?
Currently it shows GMT timezone
Thanks
Bala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 05:26 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 06:19 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2019 06:38 AM
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.