Re: If Time is Less than 24 hours Show Hours/Minutes/Seconds
Posted: Mon Oct 11, 2010 11:33 pm
My guess is that there's a timezone issue. The timezone that your server is in is probably, oh say, maybe plus or minus 4 hours from you.
Try replacing
With either
or
or
or
One of those for should work. I'm sort of tired, so I can't quite think hard enough to figure out which one 
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);