Re: MAPI Received Time 1 Hour Earlier Than Outlook 2003 Received T
- From: "Ken Slovak - [MVP - Outlook]" <kenslovak@xxxxxxxx>
- Date: Thu, 27 Oct 2005 11:45:41 -0400
OK, with CDO there can be a disconnect between your Windows and Outlook settings and what CDO is doing.
Outlook and Windows use a registry value to determine the user's time zone. Then when you get a date using the Outlook object model that local time zone is used to convert the stored GMT values to local time.
CDO on the other hand looks at the registry settings but also looks at the first DWORD of property 0x7D020102 in the Inbox, which is the property that's used for Session.GetOption("TimeZone") and for SetOption.
CDO will usually revert to using GMT and not convert to local time if the property DWORD doesn't match up with the registry setting, but it can get confused easily. Things that can corrupt that DWORD include logging into a mailbox from a different time zone where the computer is set for that different time zone, and logging into a mailbox using OWA from a kiosk or machine in a different time zone.
I'd suggest running a simple macro to display the value of Session.GetOption("TimeZone") and see if it matches the value for your time zone as listed in the CDO.HLP file. If it's incorrect then you can use SetOption to correct that DWORD.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm
"Matthew Gibson" <MatthewGibson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:6AB57BEB-661E-432D-A8A6-FD50817F31B2@xxxxxxxxxxxxxxxx
Im using CDO 1.2.1. As far as i'm aware all the computers are on GMT. The
system is running in the UK. How do know if I need to do the conversion. What
values do I have to check?
.
- Follow-Ups:
- Re: MAPI Received Time 1 Hour Earlier Than Outlook 2003 Received T
- From: Matthew Gibson
- Re: MAPI Received Time 1 Hour Earlier Than Outlook 2003 Received T
- References:
- Re: MAPI Received Time 1 Hour Earlier Than Outlook 2003 Received Time
- From: Ken Slovak - [MVP - Outlook]
- Re: MAPI Received Time 1 Hour Earlier Than Outlook 2003 Received Time
- Prev by Date: Re: compare two email folders and delete dubble items?
- Next by Date: Re: Replying an email message with standard text paragraphs
- Previous by thread: Re: MAPI Received Time 1 Hour Earlier Than Outlook 2003 Received Time
- Next by thread: Re: MAPI Received Time 1 Hour Earlier Than Outlook 2003 Received T
- Index(es):
Relevant Pages
|