PHP script making an ICS with weird time

I have written a php script to pull mysql data and make an .ics file I can subscribe to. The file works, the calendar appears on my Mac's iCal. The problem is that the event time is 200000 and iCal shows it in the 3:00pm slot.

The .ics file event part looks like this:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:PHP
CALSCALE:GREGORIAN
X-WR-CALNAME:GameTime
BEGIN:VEVENT
SEQUENCE:1
TRANSP:OPAQUE
UID:00001005
DTSTART;TZID=US/Central:20090617T200000Z
DTSTAMP:20090606T151849Z
SUMMARY:1001 0 - 0 1007
CREATED:20090606T162737Z
DTEND;TZID=US/Central:20090617T200000Z
LOCATION:Field 2
END:VEVENT

My Mac is set to Dallas : US/Central.

It seems like a time zone issue. Is there something obvious I missed to make the times wrong?

MacBook Pro, Mac OS X (10.5.5), Nokia n810

Posted on Jun 6, 2009 12:36 PM

Reply
1 reply

Jun 6, 2009 1:45 PM in response to Lamen

Hi,

You are using the 'Z' addition to the time which indicates UTC (universal time code) as well as indication a time zone id (TZID=US/Central). UTC is 5 hours ahead of 'US/Central' time. See the iCalendar specification Date-Time section: http://tools.ietf.org/html/rfc2445#section-4.3.5

Either drop the 'Z' or don't use the time zone. They should be mutually exclusive.

Best wishes

John M

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

PHP script making an ICS with weird time

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.