OOM and IMessage show different calendar times?

B

Beiley

I have some calendar items that I'm observing with OutlookSpy. When I
open the event up with "Current Item" I see some values for "Start" and
"End" that are different from the times I see when I open it up with
"IMessage". The problem seems to be related to time zones, as the
"Current Item" times are off by 5 hours from what they are supposed to
be. The "IMessage" times are correct according to what is displayed on
the Outlook calendar.

Are the IMessage times in GMT, and the "Current Item" times in local
time?

How can you get the correct time using "Current Item" (OOM)?

Thanks,
Mark
http://www.beiley.com
 
D

Dmitry Streblechenko

Yes, MAPI stores all datetime properties in the UTC timezone and OOM only
uses the local timezone.
Are you asking how to convert local timezone to UTC? What are you trying to
do?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
B

Beiley

Hi Dmitry,

Thanks for the help. I'm trying to get the event's local time. I've
been using OOM, and it has worked fine for most cases. I have one
customer who has events that have been added to their calendar as
accepted meeting requests. They show up on their calendar at a certain
time, say 1pm. If they open up that event it says "8am (GMT -5:00
EST)" in the header. OutlookSpy shows the event's local time as 8am
also, but for some reason it shows up as 1pm on their calendar, which
is what they believe the correct time should be (1pm). They have the
displayed time zone set to EST in Outlook and also in Windows, yet for
some reason it shows 1pm on the calendar view, but 8am on the event
item view. It seems like the calendar is displaying in GMT, rather
than EST, but it is set to EST in "Tools / Options... / Calendar
Options / Time Zone". I'm confused as to why/how that could be. Any
ideas?

Thanks,
Mark
http://www.beiley.com
 
D

Dmitry Streblechenko

Did you look at the Extended MAPI message (click IMessage button) or the
Outlook.AppointmentItem object (click Item button)?
What timezone was the meeting created in? If it has the timezone info
different from the current one, all times will be offset appropriately in
the UI and the Object Model.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
B

Beiley

I looked at both of those (IMessage and Item), and they are offset
correctly by 5 hours due to the timezone info (EST). However, if you
look at the event on the calendar it is displaying as if the calendar
was in UTC, rather than the specified EST time zone set under "Tools /
Options... / Calendar / Time Zone Info". This Outlook installation is
using an "iPlanet" server as opposed to Exchange. The iPlanet
installation is located in a UTC time zone, and I suspect it is somehow
causing times to display in Outlook on UTC time, rather than the
locally specified time zone (EST).

This problem only shows up on events created by receiving a meeting
request. The request comes from another Outlook with the same time
zone settings (EST). Events created on the calendar not though
accepting a meeting request work properly.

Thanks,
Mark
http://www.beiley.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top