Q-M
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?
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?
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?
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?
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
TimeZoneCode.txt
you need to use another .net item convertdatetimetoutc(datet ime())
http://msdn.microsoft.com/en-us/library/bb397769.aspx#Y742
http://msdn.microsoft.com/en-us/library/bb381744.aspx
http://msdn.microsoft.com/en-us/library/bb397769.aspx#Y742
http://msdn.microsoft.com/en-us/library/bb381744.aspx
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Figured out solution on my own
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.