<?php
date_default_timezone_set('Europe/London');
echo "<date>";
echo "|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || ";
/*
print gmdate("D H:i:s",time());
*/
$datetime1 = new DateTime('now');
$datetime2 = new DateTime('tomorrow 09:00:00');
$interval = date_diff($datetime1,$datetime2);
echo $interval->format('%H:%i:%s to go!');
echo "</date>";
/*
$d1 = new DateTime();
$d2 = new DateTime('21:00:00');
$d3 = new DateTime('09:00:00');
$d4=$d2->diff($d1);
$d5=$d3->diff($d1);
echo $d4->format(' %h:%i:%s is 21:00?');
echo $d5->format(' %h:%i:%s is 9:00?');
*/
?>
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( || 18:0:44 to go!</date>
Output for 5.2.0 - 5.2.17
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( ||
Fatal error: Call to undefined function date_diff() in /in/J1K2X on line 13
Process exited with code 255.
Output for 5.1.0 - 5.1.6
<date>|| This is a TEST || Oxygen8 - Haiti Appeal 2013 || Total Raised so far : £0 :( ||
Fatal error: Class 'DateTime' not found in /in/J1K2X on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Fatal error: Call to undefined function date_default_timezone_set() in /in/J1K2X on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: date_default_timezone_set() in /in/J1K2X on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: date_default_timezone_set() in /in/J1K2X on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: date_default_timezone_set() in /in/J1K2X on line 3