Hi have a cron job working and it does everything find apart from when adding my feed to the database it does not add the time. When I call the page direct it adds so the code is fine.
Why does it not get the time? is it my cron command? which is as follows?
/usr/local/bin/php -q /home/mysite/public_html/cron_rss_feed.php
This is how I get the time, either the code or the require script. Neither work
$Int = 2;
$set_base_nowtime = strtotime("now");
$set_base_nztime = $set_base_nowtime + (3600 * $Int);
$set_base_date = date ('Y-m-d', $set_base_nowtime + (3600 * + $Int));
$set_base_date_today = date ('D jS M', $set_base_nowtime + (3600 * + $Int));
$set_base_time = date ('g:i:s a', $set_base_nowtime + (3600 * + $Int))
require('../time.php');