PHP Classes

Showing wrong end time in google calendar

Recommend this page to a friend!

      iCalCreator  >  All threads  >  Showing wrong end time in google...  >  (Un) Subscribe thread alerts  
Subject:Showing wrong end time in google...
Summary:Showing wrong end time in google calendar
Messages:1
Author:dsprelax
Date:2011-06-18 06:54:20
 

  1. Showing wrong end time in google...   Reply   Report abuse  
Picture of dsprelax dsprelax - 2011-06-18 06:54:20
Hi

I import this iCal file in Google calendar. It shows the correct date & Start time but showing the Wrong End Time.
Here is the sample code that i am using & Importing in Google Calendar.

require_once('iCalcreator.class.php' );
$v = new vcalendar(); // create a new calendar instance
$v->setConfig( 'unique_id', 'icaldomain.com' ); // set Your unique id
$v->setProperty( 'method', 'PUBLISH' ); // required of some calendar software
$vevent = new vevent();
$vevent->setProperty( 'dtstart', array( 'year'=>2011, 'month'=>7, 'day'=>1, 'hour'=>19, 'min'=>0, 'sec'=>0 ));
$vevent->setProperty( 'dtend', array( 'year'=>2011, 'month'=>7, 'day'=>1, 'hour'=>22, 'min'=>30, 'sec'=>0 ));
$vevent->setProperty( 'summary', 'Testing the Event in Google Calendar' );
$vevent->setProperty( 'description', 'This is a description For Testing' );
$v->setComponent ( $vevent );

// OUTPUT in ics file
BEGIN:VCALENDAR
METHOD:PUBLISH
PRODID:-//icaldomain.com//NONSGML iCalcreator 2.4.3//
VERSION:2.0
BEGIN:VEVENT
UID:20110618T065102UTC-0735FMeSWI@icaldomain.com
DTSTAMP:20110618T065102Z
DESCRIPTION:This is a description For Testing
DTEND:20110701T223000
DTSTART:20110701T190000
SUMMARY:Testing the Event in Google Calendar
END:VEVENT
END:VCALENDAR

// Event Time in Google Calendar
Fri, July 1, 7pm – 8pm

Please Help me, its urgent.

Thanks
Deepak.