Try replacing
Code: Select all
$now = time();
$then = get_the_time('U');Code: Select all
$now = time() + (60*60*4);
$then = get_the_time('U');Code: Select all
$now = time() - (60*60*4);
$then = get_the_time('U');Code: Select all
$now = time();
$then = get_the_time('U') + (60*60*4);Code: Select all
$now = time();
$then = get_the_time('U') - (60*60*4);