Double check to make sure that the time zone settings in Outlook for the
Calendar properties is the same as the time zone settings set up in the
Windows Control Panel settings for time and date. Also make sure the time
zone update for Outlook has been installed.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"MA" wrote in message
...
Thanks Ken for your response.
I think the issue could be in Outlook client in respect to the day-
light savings.
When I create the message, I can see in VS object inspector (after the
date set) the correct date time, but in Outlook client the time shows
in-correct. If I un-check the Date & Time Properties - "Automatically
adjust clock for daylight savings changes" all date time shows
correctly.
To give you an example:
Step 1. Create two messages with the following code. Both message time
set to 10.37am but two different date.
- Message1 date: 04-April-03 10.37am
- Message2 date: 06-April-03 10.37am
code
// Message 1: 04-April-03 10.37am
RDOMail msg1 = rdoFolder.Items.Add("IPM.Note") as RDOMail;
");
DateTime date = new DateTime(2003, 04, 04, 10, 37, 0, 0,
DateTimeKind.Utc);
msg1.Subject = string.Format("Message1 : {0}", date.ToString());
msg1.ReceivedTime = date;
msg1.Save();
// Message 2: 06-April-03 10.37am
RDOMail msg2 = rdoFolder.Items.Add("IPM.Note") as RDOMail;
");
DateTime date2 = new DateTime(2003, 04, 06, 10, 37, 0, 0,
DateTimeKind.Utc);
msg2.Subject = string.Format("Message2 : {0}", date2.ToString());
msg2.ReceivedTime = date2;
msg2.Save();
/code
Step 2:
- Time zone: GMT +10 time zone (Sydney)
- Check "Automatically adjust clock for daylight savings changes"
checkbox
- Message 1 shows in Outlook client 11.37am
- Message 2 shows in Outlook client 10.37am
Results: Shows in-correct time for Message 1 (offset by an hour)
Step 3:
- Un-check "Automatically adjust clock for daylight savings changes"
checkbox
- Message 1 shows in Outlook client 10.37am
- Message 2 shows in Outlook client 10.37am
Results: Shows correct time for both messages
In both occasion, using Outlook Spy - ReceivedTime shows 11:37 AM,
4/04/2003.
I don't understand why the Message1 add an hour when "Automatically
adjust clock for daylight savings changes" checked where the Message 2
shows correct time regarless of the daylight savings auto adjust
checkbox
Thanks again for the advice.
Regards,
MA