.white_row {padding:5px 0 5px 5px; text-align: left;width: 200px;} .white_row2 {padding:5px 0 5px 5px; text-align: left;width: 495px;} .room {padding:5px 0 0 0; font-size: 14px;font-weight: bolder;} </style> </head> <body> <div class="container"> <table cellspacing="0" cellpadding="1" border="0" align="center" class="table_grid row"> <thead> <th class="grey_row">TIME</th> <th class="grey_row2">EVENT</th> </thead> <?php require 'IcalReader.php'; $ical = new ICal(); $files = $ical->findAllFiles('ics-files'); $i = 0; date_default_timezone_set('Australia/ACT'); foreach ($files as $key => $file) { $caldata = array(); $ical->cal = ''; $caldata = $ical->getEventsByFileName($file); foreach ($caldata['VEVENT'] as $data) { $e[$i]['UID'] = $data['UID']; $e[$i]['SUMMARY'] = $data['SUMMARY']; $e[$i]['LOCATION'] = isset($data['LOCATION']) ? $data['LOCATION'] : ''; // $ts = strtotime($data['DTSTART']); $changedDate = date('YmdHis', $ts); $e[$i]['DTSTART'] = $changedDate; $e[$i]['DTEND'] = $data['DTEND'];