after installing and trying to run my site that works on the live server, this:
- Code: Select all
<?
require 'carbon.php';
use Carbon\Carbon;
$resetDaily = new Carbon('2016-01-12T09:00:00Z');
$resetWeekly = new Carbon('2016-01-19T09:00:00Z');
$todayDate = Carbon::now();
$dm_diffDays = $resetWeekly->diffInDays($todayDate);
$dm_diffHours = $resetDaily->diffInHours($todayDate);
echo 'Today: '.$todayDate.'<br>';
echo 'Weekly Reset in '.$dm_diffDays.' Days<br>';
echo 'Daily Reset in '.$dm_diffHours.' Hours<br>';
?>
prints:
diffInDays($todayDate); $dm_diffHours = $resetDaily->diffInHours($todayDate); echo 'Today: '.$todayDate.'
'; echo 'Weekly Reset in '.$dm_diffDays.' Days
'; echo 'Daily Reset in '.$dm_diffHours.' Hours
'; ?>
any idea what I need to change in the setting to get it working right? All I did was install it and copy my files at this point.
Thanks