Re: WebDav, Time Zones
- From: "Lee Derbyshire [MVP]" <email a@t leederbyshire d.0.t c.0.m>
- Date: Wed, 15 Aug 2007 14:04:14 +0100
Okay, well the first thing you need is a text value containing the time zone
name. This property is http://schemas.microsoft.com/exchange/timezone which
you can get by sending a PROPFIND to the mailbox URL.
Then use that name to find a CDO time zone number from a lookup table:
Dateline Standard Time,39
Samoa Standard Time,16
Hawaiian Standard Time,15
Alaskan Standard Time,14
Pacific Standard Time,13
US Mountain Standard Time,38
Mountain Standard Time,12
Central America Standard Time,55
Central Standard Time,11
Mexico Standard Time,37
Mexico Standard Time 2,12
Canada Central Standard Time,36
SA Pacific Standard Time,35
Eastern Standard Time,10
US Eastern Standard Time,34
Atlantic Standard Time,9
SA Western Standard Time,33
Pacific SA Standard Time,65
Newfoundland Standard Time,28
E. South America Standard Time,8
Greenland Standard Time,60
SA Eastern Standard Time,32
Mid-Atlantic Standard Time,30
Azores Standard Time,29
Cape Verde Standard Time,53
Greenwich Standard Time,31
GMT Standard Time,1
W. Europe Standard Time,4
Central Europe Standard Time,6
Romance Standard Time,3
Central European Standard Time,2
W. Central Africa Standard Time,69
GTB Standard Time,7
E. Europe Standard Time,5
Egypt Standard Time,49
South Africa Standard Time,50
FLE Standard Time,59
Israel Standard Time,27
Arabic Standard Time,74
Arab Standard Time,26
Russian Standard Time,56
E. Africa Standard Time,51
Iran Standard Time,25
Arabian Standard Time,24
Caucasus Standard Time,54
Afghanistan Standard Time,48
Ekaterinburg Standard Time,58
West Asia Standard Time,47
India Standard Time,23
Nepal Standard Time,62
N. Central Asia Standard Time,46
Central Asia Standard Time,71
Sri Lanka Standard Time,66
Myanmar Standard Time,61
SE Asia Standard Time,22
North Asia Standard Time,64
China Standard Time,45
North Asia East Standard Time,63
W. Australia Standard Time,73
Singapore Standard Time,21
Taipei Standard Time,75
Tokyo Standard Time,20
Korea Standard Time,72
Yakutsk Standard Time,70
Cen. Australia Standard Time,19
AUS Central Standard Time,44
E. Australia Standard Time,18
AUS Eastern Standard Time,76
West Pacific Standard Time,43
Tasmania Standard Time,42
Vladivostok Standard Time,68
Central Pacific Standard Time,41
New Zealand Standard Time,17
Fiji Standard Time,40
Tonga Standard Time,67
Then you can use that number to use a CDO.Appointment's Configuration object
to convert the times. Set the object's time zone to 0, update it, change
the start time to the time you want to convert, and the time zone to the
desired value, and update it again. Hopefully the time will then be in the
user's local OWA time zone.
That's how I do it, anyway. I'd really love to think there was a nicer way,
but I've never found one.
Lee.
"Eric" <ericp@xxxxxxxxxxx> wrote in message
news:OkBvErz3HHA.4184@xxxxxxxxxxxxxxxxxxxxxxx
I'm using Exchange 2003.
"Lee Derbyshire [MVP]" <email a@t leederbyshire d.0.t c.0.m> wrote in
message news:eF1IWnz3HHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
"Eric" <ericp@xxxxxxxxxxx> wrote in message
news:%2302G0iw3HHA.5880@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
Using WebDav, is there a way to get an Exchange user's time zone? It's
available in OWA under options - I'm hoping I can get the Time Zone and
GMT offset information from the server.
If it's not easy, I'll have to create/retrieve an appointment and use
the urn:schemas:calendar:timezone text for determining the GMT offset.
Eric
It's horrible with DAV, but which version of Exchange do you have?
There's a difference between the 2000/2003 and 2007 methods.
Lee.
--
______________________________________
Outlook Web Access For PDA , OWA For WAP
www.leederbyshire.com
email a@t leederbyshire d.0.t c.0.m
______________________________________
.
- Follow-Ups:
- Re: WebDav, Time Zones
- From: Eric
- Re: WebDav, Time Zones
- References:
- WebDav, Time Zones
- From: Eric
- Re: WebDav, Time Zones
- From: Lee Derbyshire [MVP]
- Re: WebDav, Time Zones
- From: Eric
- WebDav, Time Zones
- Prev by Date: Re: WebDav, Time Zones
- Next by Date: Re: Time
- Previous by thread: Re: WebDav, Time Zones
- Next by thread: Re: WebDav, Time Zones
- Index(es):
Relevant Pages
|