Date/time variable on catalog item based on time zone

SMuir
Mega Guru

I have created a Catalog item named Book a meeting.

We have two dates/time fields on the form.

  1. Meeting start date Field name = meeting_date_time_start
  2. 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

7 REPLIES 7

Hi Sarah,



Instead of using gs.print(gdt.getLocalDate()) you should be using alert(gdt.getLocalDate());


Thank you for the explanation, much appreciated. I will give it a try and get back report back if it worked.


SMuir
Mega Guru

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