Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 952
  • Last Modified:

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?
0
Q-M
Asked:
Q-M
  • 5
  • 3
1 Solution
 
David Johnson, CD, MVPOwnerCommented:
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.
0
 
Q-MAuthor Commented:
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?
0
 
Q-MAuthor Commented:
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
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
David Johnson, CD, MVPOwnerCommented:
0
 
Q-MAuthor Commented:
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
0
 
David Johnson, CD, MVPOwnerCommented:
Outlook will NEVER use anything other that UTC. http://cc.oulu.fi/~jarioksa/ical/icaloutlook.html
0
 
Q-MAuthor Commented:
Hi ve3ofa,

I was able to get it to work and tested it out and it worked fine for me.
0
 
Q-MAuthor Commented:
Figured out solution on my own
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now