Here is my code and even though I set my timezone (eastern standard time and eastern daylight time) the calendar event is off by 4 hours - so i want the event to start at 9 am and end at 5 pm and I had to set it 4 hours ahead

Code:
echo "DTSTART:{$date}T130000Z\n";
echo "DTEND:{$date}T210000Z\n";

full code
Code:
header("Content-Type: text/Calendar; charset=utf-8");
header("Content-Disposition: inline; filename=cpso{$date}.ics");
echo "BEGIN:VCALENDAR\n";
echo "PRODID:-//Microsoft Corporation//Outlook 14.0 MIMEDIR//EN\n";
echo "VERSION:2.0\n";
echo "METHOD:EVENT\n";
echo "X-MS-OLK-FORCEINSPECTOROPEN:TRUE\n";
echo "BEGIN:VEVENT\n";
echo "CLASS:PUBLIC\n";

//set daylight saving time every year
echo "BEGIN:VTIMEZONE\n";
echo "TZID:America/Toronto\n";
echo "LAST-MODIFIED:20130314T111700Z\n";
echo "BEGIN:DAYLIGHT\n";
echo "DTSTART:20130310T020000\n";
echo "TZOFFSETTO:-0700\n";
echo "TZOFFSETFROM:+0000\n";
echo "TZNAME:EST\n";
echo "END:DAYLIGHT\n";
echo "BEGIN:STANDARD\n";
echo "DTSTART:20131103T020000\n";
echo "TZOFFSETTO:-0800\n";
echo "TZOFFSETFROM:-0700\n";
echo "TZNAME:EST\n";
echo "END:STANDARD\n";
echo "END:VTIMEZONE\n";

echo "CREATED:{$date}T000000Z\n";
echo "DESCRIPTION:Discipline/Fitness Hearing for {$physician}\n";
echo "DTSTAMP:{$date}T000000Z\n";
echo "DTSTART:{$date}T130000Z\n";
echo "DTEND:{$date}T210000Z\n";
echo "LAST-MODIFIED:{$date}T101015Z\n";
echo "LOCATION:College of Physicians and Surgeons\n";
echo "PRIORITY:5\n";
echo "SEQUENCE:0\n";
echo "SUMMARY;LANGUAGE=en-us:CPSO Discipline/Fitness Hearing\n";
echo "TRANSP:OPAQUE\n";
echo "UID:".date('Ymd').'T'.date('His')."-".rand()."-CPSO\\n";
echo "X-MICROSOFT-CDO-BUSYSTATUS:BUSY\n";
echo "X-MICROSOFT-CDO-IMPORTANCE:1\n";
echo "X-MICROSOFT-CDO-ALLDAYEVENT:TRUE\n";
echo "X-MICROSOFT-MSNCALENDAR-ALLDAYEVENT:TRUE\n";
echo "X-MICROSOFT-DISALLOW-COUNTER:FALSE\n";
echo "X-MS-OLK-ALLOWEXTERNCHECK:TRUE\n";
echo "X-MS-OLK-AUTOFILLLOCATION:FALSE\n";
echo "X-MS-OLK-CONFTYPE:0\n";
//Here is to set the reminder for the event.
echo "BEGIN:VALARM\n";
echo "TRIGGER:-PT1440M\n";
echo "ACTION:DISPLAY\n";
echo "DESCRIPTION:Reminder\n";
echo "END:VALARM\n";
echo "END:VEVENT\n";
echo "END:VCALENDAR\n";