Link to home
Start Free TrialLog in
Avatar of Q-M
Q-MFlag for Canada

asked on

Add EST Timezone to vCalendar

Hi there,

I was wondering how I would be able to set the timezone on the vCalendar file.

We have a datetime set at 8:30 AM Eastern time, but we need the vCalendar file to set the timezone.

How would I be able to set that when I'm generating the vCalendar file?
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Vcalendar format
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
CATEGORIES:MEETING
STATUS:TENTATIVE
DTSTART:19960401T033000Z
DTEND:19960401T043000Z
SUMMARY:Your Proposal Review
DESCRIPTION:Steve and John to review newest proposal material
CLASS:PRIVATE
END:VEVENT
END:VCALENDAR

Open in new window


note: it uses Zulu Time (GMT/UTC).. The client will take this time and using its own TZ settings display the correct date/time for that user.
Avatar of Q-M

ASKER

Thanks ve3ofa,

That doesn't really help solve my problem. How would I convert my existing datetime to UTC time?

The DateTime object in .net doesn't take into account the timezone, so how would I convert 8:30 AM EST to UTC and also taking into account daylight savings time?

Wouldn't it be easier if the vCalendar can be set to a timezone?
Avatar of Q-M

ASKER

Attached is my code that generates the vCalendar file, I've tried adding the TimeZone block but it doesn't seem to work.
TimeZoneCode.txt
Avatar of Q-M

ASKER

Thanks ve3ofa,

But that still doesn't answer my question as to whether or not I can set a timezone in the vCanlendar file.

I was able to figure this out on my own and added the following to the file to make it work:

BEGIN:VTIMEZONE
...
...
END:VTIMEZONE
Outlook will NEVER use anything other that UTC. http://cc.oulu.fi/~jarioksa/ical/icaloutlook.html
ASKER CERTIFIED SOLUTION
Avatar of Q-M
Q-M
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Q-M

ASKER

Figured out solution on my own