How to generate timeZoneInformation option for the CreateWorkspace method in Meetings

Mar 4, 2010 at 6:47 PM

Hi,

I found it easy enough to generate a subsite calling this method but so far it always generates a subsite based on the standard meetings template no matter what I pass in as the site template - I've tried local templates such as "mytesttemplate.stp" and the standard templates such as "STS#0" but I always get a Meetings site. According to everything I've read it _should_ be possible to create a subsite based on any template... then I realised I wasn't passing the timeZoneInformation option which, according to the webservice description in NOT optional - maybe this is forcing it to revert to default setting??

So my question is how to generate the content for this timeZoneInformation option. It appears to be a complex type with several fields. This is how it appears in the MS documentation:

    <timeZoneInformation>
        <bias>int</bias>
        <standardDate>
          <year>unsignedShort</year>
          <month>unsignedShort</month>
          <dayOfWeek>unsignedShort</dayOfWeek>
          <day>unsignedShort</day>
          <hour>unsignedShort</hour>
          <minute>unsignedShort</minute>
          <second>unsignedShort</second>
          <milliseconds>unsignedShort</milliseconds>
        </standardDate>
        <standardBias>int</standardBias>
        <daylightDate>
          <year>unsignedShort</year>
          <month>unsignedShort</month>
          <dayOfWeek>unsignedShort</dayOfWeek>
          <day>unsignedShort</day>
          <hour>unsignedShort</hour>
          <minute>unsignedShort</minute>
          <second>unsignedShort</second>
          <milliseconds>unsignedShort</milliseconds>
        </daylightDate>
        <daylightBias>int</daylightBias>
      </timeZoneInformation>

Anyone have an example of how to do this in javascript?

Thanks

Coordinator
Mar 5, 2010 at 1:32 AM

I'm not sure of the answer to this one.  Why don't you try posting it on SharePointOverflow.com?

M.

Mar 9, 2010 at 9:15 AM

Just to confirm - I had made a mistake naming the template parameter - gotta remember these things are always case-sensetive!

look at this discussion for more details