Date/time variable on catalog item based on time zone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2017 04:46 AM
I have created a Catalog item named Book a meeting.
We have two dates/time fields on the form.
- Meeting start date Field name = meeting_date_time_start
- Meeting end date Field name = meeting_date_time_end
When the customer select the field (s) we want them to be able to select a time zone based on the location the meeting will be held when submitting the request. please note I a new to coding and only recently passed my SN Administration exam. So help is greatly appreciated.
Has anyone done this or know how I can get SN to do this?
Many thanks for your help in advance.
Kind regards
Sarah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2017 02:57 AM
Hi Sarah,
Instead of using gs.print(gdt.getLocalDate()) you should be using alert(gdt.getLocalDate());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2017 04:48 AM
Thank you for the explanation, much appreciated. I will give it a try and get back report back if it worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2017 07:24 AM
I have tried the following code in a catalog client script.
It did not work. I set the catalog client script to inactive and did some testing as a Canada user, selected the date and time field and it showed 08:08:40 using the users timezone as default instead of the system property for GMT set.
When I logged in as a Europe/London user the time was 15:08. So I don't think I need this now.
Thanks for all you help on this.
Regards
Sarah