1

I am using this example code to send a meeting request. I am having a problem: every time I use the code, the meeting time is always the wrong time.

For example: DTSTART:20120710T143000Z gives an appointment in Outlook Tuesday, July 10, 2012 4:30 PM-5:30 PM when it should give Tuesday, July 10, 2012 2:30 PM-3:30 PM. Why is that happening?

Our local time is UTC/GMT +3 (Jordan Standard Time) in the summer and UTC/GMT +2 in the winter. Every time I make an appointment through outlook it is always the right time.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Waqleh
  • 9,741
  • 8
  • 65
  • 103

1 Answers1

2

The start time you place in your appointment should be a UTC time. I suspect you are a inserting local (Jordan) time. This explains the two hour difference, because afaik UTC does not take daylight saving time into account.

SO resources:

  1. Convert somebody's local time to the UTC time
  2. Daylight saving time and time zone best practices
  3. Convert UTC/GMT time to local time
Community
  • 1
  • 1
Marijn
  • 10,367
  • 5
  • 59
  • 80