vCalendar by PHP

Below is a PHP function that generates vCalendar which can be imported into Outlook. Notice¬†VTIMEZONE section which specifies timezone. If this section is missing, Outlook will most likely parse the timezone incorrectly.(default to UTC)   function generate_vcalendar() { $to =