human time diff giving me the wrong time
-
I’m using the function human_time_diff (
<?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ); ?>) on a site, but it’s returning a completely wrong time. It should say something like 1 hour ago, but it’s returning 18 hours ago. Why is it off?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘human time diff giving me the wrong time’ is closed to new replies.