cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

How to get a Event Timezone?

zx2538265
Beginner
Beginner

Hi all,

I am pretty new to WebEx dev, My problem is  I create  a event  and  I want get  this event timezone .  so I use GetEvent  ,but no have timezone information.


Respone Below:

<event:schedule>

            <event:startDate>09/24/2016 10:25:00</event:startDate>

            <event:timeZoneID>4</event:timeZoneID>

            <event:duration>60</event:duration>

            <event:openTime>60</event:openTime>

            <event:hostWebExID>hostid</event:hostWebExID>

            <event:entryExitTone>BEEP</event:entryExitTone>

            <event:extNotifyTime>0</event:extNotifyTime>

            <event:joinTeleconfBeforeHost>false</event:joinTeleconfBeforeHost>

</event:schedule>

but GetMeeting can respone timezone

<meet:schedule>

          <meet:startDate>09/24/2016 10:25:00</meet:startDate>

           <meet:timeZoneID>4</meet:timeZoneID>

         <meet:timeZone>GMT-08:00, Pacific (San Jose)</meet:timeZone>

          <meet:duration>60</meet:duration>

          <meet:openTime>300</meet:openTime>

          <meet:hostWebExID>hostid</meet:hostWebExID>

          <meet:templateFilePath />

          <meet:showFileStartMode>true</meet:showFileStartMode>

          <meet:showFileContPlayFlag>false</meet:showFileContPlayFlag>

          <meet:showFileInterVal>30</meet:showFileInterVal>

          <meet:entryExitTone>0</meet:entryExitTone>

          <meet:extNotifyTime>0</meet:extNotifyTime>

          <meet:joinTeleconfBeforeHost>false</meet:joinTeleconfBeforeHost>

</meet:schedule>


Anyone knows How to get a Event Timezone?




3 REPLIES 3

ryanhunt
Contributor
Contributor

If you issue a site.LstTimeZone request it will return a list of TimeZone ID's with more details, here is a sample:

<serv:bodyContent xsi:type="ns1:lstTimeZoneResponse"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<ns1:timeZone>

  <ns1:timeZoneID>0</ns1:timeZoneID>

  <ns1:gmtOffset>720</ns1:gmtOffset>

  <ns1:description>GMT+12:00, Dateline (Marshall Islands)</ns1:description>

  <ns1:shortName>Marshall Islands</ns1:shortName>

  <ns1:hideTimeZoneName>false</ns1:hideTimeZoneName>

  <ns1:fallInDST>false</ns1:fallInDST>

</ns1:timeZone>

<ns1:timeZone>

  <ns1:timeZoneID>1</ns1:timeZoneID>

  <ns1:gmtOffset>-660</ns1:gmtOffset>

  <ns1:description>GMT-11:00, Samoa (Samoa)</ns1:description>

  <ns1:shortName>Samoa</ns1:shortName>

  <ns1:hideTimeZoneName>true</ns1:hideTimeZoneName>

  <ns1:fallInDST>false</ns1:fallInDST>

</ns1:timeZone>

<ns1:timeZone>

  <ns1:timeZoneID>2</ns1:timeZoneID>

  <ns1:gmtOffset>-600</ns1:gmtOffset>

  <ns1:description>GMT-10:00, Hawaii (Honolulu)</ns1:description>

  <ns1:shortName>Honolulu</ns1:shortName>

  <ns1:hideTimeZoneName>true</ns1:hideTimeZoneName>

  <ns1:fallInDST>false</ns1:fallInDST>

</ns1:timeZone>

<ns1:timeZone>

  <ns1:timeZoneID>3</ns1:timeZoneID>

  <ns1:gmtOffset>-480</ns1:gmtOffset>

  <ns1:description>GMT-08:00, Alaska (Anchorage)</ns1:description>

  <ns1:shortName>Anchorage</ns1:shortName>

  <ns1:hideTimeZoneName>false</ns1:hideTimeZoneName>

  <ns1:fallInDST>true</ns1:fallInDST>

  <ns1:standardLabel>Standard</ns1:standardLabel>

  <ns1:daylightLabel>Daylight</ns1:daylightLabel>

</ns1:timeZone>

<ns1:timeZone>

  <ns1:timeZoneID>4</ns1:timeZoneID>

  <ns1:gmtOffset>-420</ns1:gmtOffset>

  <ns1:description>GMT-07:00, Pacific (San Francisco)</ns1:description>

  <ns1:shortName>San Francisco</ns1:shortName>

  <ns1:hideTimeZoneName>false</ns1:hideTimeZoneName>

  <ns1:fallInDST>true</ns1:fallInDST>

  <ns1:standardLabel>Standard</ns1:standardLabel>

  <ns1:daylightLabel>Daylight</ns1:daylightLabel>

</ns1:timeZone>

etc..

Hi Ryan,


I Used site.LstTimeZone

but the date is UTC(?) to request

I want the event  the correct local time zone,

E.g

I schedule an Event ,I chose a Time zone is New Zealand and I plan the start time

How to return  the correct time zone when start time ?

like <meet:timeZone

thx

Hi Allen,

Apologies for the delay. You may have already figured this out by now. I'm not sure I understand the part about the date being UTC to request, but I did a test scheduling an event for the time zone for Wellington, NZ and this is (part of) the response I got:

<event:schedule>

  <event:startDate>07/22/2016 16:45:00</event:startDate>

  <event:timeZoneID>60</event:timeZoneID>

  <event:duration>60</event:duration>

  <event:openTime>0</event:openTime>

  <event:hostWebExID>redacted</event:hostWebExID>

  <event:entryExitTone>NOTONE</event:entryExitTone>

  <event:extNotifyTime>0</event:extNotifyTime>

  <event:joinTeleconfBeforeHost>false</event:joinTeleconfBeforeHost>

</event:schedule>

Calling LstTimeZone, you can cross-reference what timeZoneID 60 is:

<ns1:timeZone>

  <ns1:timeZoneID>60</ns1:timeZoneID>

  <ns1:gmtOffset>720</ns1:gmtOffset>

  <ns1:description>GMT+12:00, New Zealand (Wellington)</ns1:description>

  <ns1:shortName>Wellington</ns1:shortName>

  <ns1:hideTimeZoneName>false</ns1:hideTimeZoneName>

  <ns1:fallInDST>false</ns1:fallInDST>

  <ns1:standardLabel>Standard</ns1:standardLabel>

  <ns1:daylightLabel>Daylight</ns1:daylightLabel>

</ns1:timeZone>

Hope this helps. Please let me know if not.

Kasey

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: