|
|
|
date: Mon, 25 Feb 2008 06:47:48 -0800 (PST),
group: microsoft.public.exchange.development
back
Re: Time zone of Exchange server-- how to retrieve via WebDav?
Hello,
the server timezone is irrelevant to the meeting. Most of the time
information of a contact is stored as UTC. Therefore you can use the .NET
DateTime.ToLocalTime.
This usually makes the most sense on a client computer.
But don't forget to call DateTime.ToUniversalTime before you save something
to the store.
Kind regards,
Henning Krause
wrote in message
news:274e2bf1-729a-4fe9-b3da-26b2823af66f@q78g2000hsh.googlegroups.com...
> When I retrieve meetings, etc from Exchange using WebDav, I know the
> time is returned in UTC. My question is how do I access the time zone
> of the Exchange server so I then can convert the appointment from UTC
> to the proper timezone?
>
> In my webdav request, I do ask for the timezoneid property (I also
> tried the timezone property) but it is returned as "".
>
> Sample request:
>
> PROPFIND /exchange/test/Calendar/21.EML HTTP/1.1
> Content-Type: text/xml
> Host: 9.33.36.65
> Depth: 1
> Authorization: Basic Y3BwXHRlc3Q6UGFzc3cwcmQ=
> User-Agent: Java/1.4.2
> Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> Connection: keep-alive
> Content-Length: 461
>
> <?xml version='1.0'?><a:propfind xmlns:a='DAV:'><a:prop
> xmlns:cal='urn:schemas:calendar:' xmlns:d='urn:schemas:mailheader:'
> xmlns:e='urn:schemas:httpmail:'><e:subject/><e:htmldescription/><e:to/
>><e:cc/><e:hasattachment/><cal:location/><cal:timezoneid/><cal:dtstart/
>><cal:dtend/><cal:organizer/><cal:uid/><cal:recurrenceid/><cal:rsvp/
>><cal:responserequested/><cal:alldayevent/><cal:meetingstatus/
>><cal:instancetype/><cal:rrule/><cal:xrule/></a:prop></a:propfind>
>
>
> Response:
>
> HTTP/1.1 207 Multi-Status
> Date: Mon, 25 Feb 2008 14:45:45 GMT
> Server: Microsoft-IIS/6.0
> X-Powered-By: ASP.NET
> Content-Type: text/xml
> Accept-Ranges: rows
> MS-WebStorage: 6.5.7638
> Transfer-Encoding: chunked
>
> <?xml version="1.0"?><a:multistatus
> xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
> xmlns:d="urn:schemas:httpmail:" xmlns:c="xml:"
> xmlns:e="urn:schemas:calendar:"
> xmlns:a="DAV:"><a:response><a:href>http://9.33.36.65/exchange/test/
> Calendar/21.EML</a:href><a:propstat><a:status>HTTP/1.1 200 OK</
> a:status><a:prop><d:subject>21</d:subject><d:hasattachment
> b:dt="boolean">0</d:hasattachment><e:location></e:location>
>
> <e:dtstart b:dt="dateTime.tz">2008-02-20T23:00:00.000Z</e:dtstart>
> <e:dtend b:dt="dateTime.tz">2008-02-21T23:00:00.000Z</e:dtend>
>
> <e:organizer>"test user" <test@cpp.notesdev.ibm.com></
> e:organizer><e:uid>CD0000008B9511D182D800C04FB1625D127F13282B257D478FB9E4F8279840BC</
> e:uid><e:responserequested b:dt="boolean">1</
> e:responserequested><e:alldayevent b:dt="boolean">1</
> e:alldayevent><e:meetingstatus>TENTATIVE</
> e:meetingstatus><e:instancetype b:dt="int">0</e:instancetype></
> a:prop></a:propstat><a:propstat><a:status>HTTP/1.1 404 Resource Not
> Found</a:status><a:prop><d:htmldescription/><d:to/><d:cc/>
>
> <e:timezoneid/>
>
> <e:recurrenceid/><e:rsvp/><e:rrule/><e:xrule/></a:prop></a:propstat></
> a:response></a:multistatus>
> 0
>
>
> This is an allday event that was created in the +1:00 timezone...so is
> stored in Exchange an hour behind. Note that the timezoneid is empty..
>
> Any assistance would be appreciated. Thanks!
> Devin
>
date: Mon, 25 Feb 2008 18:52:02 +0100
author: Henning Krause [MVP - Exchange]
|
|