human time diff is wrong
-
I’m using the following code in my comment display list, to show the human time difference.
<?php echo human_time_diff( get_comment_time('U'), current_time('timestamp') ) . ' ago'; ?>
When I post a comment and the page refreshes, I expect it to display ‘1 minute ago’ but instead it is displaying ‘1 hour ago’.
This is not the behaviour I expect, and suspect this isn’t the intended behaviour.
Can anybody suggest why this might be the case?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘human time diff is wrong’ is closed to new replies.