Skip to content

Commit

Permalink
Added handling for time
Browse files Browse the repository at this point in the history
  • Loading branch information
metaodi committed Aug 14, 2012
1 parent a8b6632 commit 34c8c09
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/php/InstallCalendar.php
Expand Up @@ -17,7 +17,7 @@
$ical = "BEGIN:VCALENDAR\r\n";
$ical .= "METHOD:PUBLISH\r\n";
$ical .= "VERSION:2.0\r\n";
$ical .= "PRODID:-//Stefan Oderbolz//GFTCalendar//EN\r\n";
$ical .= "PRODID:-//<Enter Company Name Here>//Installer Calendar//EN\r\n";

foreach ($rows as $row)
{
Expand All @@ -28,10 +28,9 @@
$hood = $row[array_search('hood', $cols)];
$multiple_locations = $row[array_search('multiple_locations', $cols)];

$time = "";
//$time = $row[array_search('time_request', $cols)];
//echo $row[array_search('scheduled_date', $cols)] + " " + $time;
$startDate = new DateTime($row[array_search('scheduled_date', $cols)]);
$time = $row[array_search('time_request', $cols)];
$scheduled_date = new DateTime($row[array_search('scheduled_date', $cols)]);
$startDate = new DateTime($scheduled_date->format('m/d/Y') . " " . $time);
$endDate = clone $startDate;
$now = new DateTime();

Expand Down

0 comments on commit 34c8c09

Please sign in to comment.