Time Diff on Impored Posts from Feed Sources
-
Hello.
Plugin is working fine, but I have a question regarding the human_time_diff of the imported posts.
I am using the following code to display how much time ago the post has been published (for example: 5 mins ago)
<?php echo esc_html( human_time_diff( get_the_time('U'), current_time('timestamp') ) ) . ' ago'; ?>
In the WP Admin under Posts section I can see that the imported post from an RSS Feed source is 5 minutes ago. But on the front page it displays it adds 1 hour so the result of the human_time_diff function becomes 1 hour and 5 minutes instead of just 5 minutes.
Can someone explain what could be the cause of this?
- The topic ‘Time Diff on Impored Posts from Feed Sources’ is closed to new replies.