Local Time Issues
-
I have set the local time to UTC–4.
On front-page.php, the displayed time appears to be subtracting 4 hours from the local time for the first forum listing only. The times of all other forum listings are correct. <?php $t1=get_topic(forum_last_topic_id()); echo date(“D M j, Y g:i a”, bb_offset_time(strtotime($t1->topic_time))); ?>
On forum.php, the displayed time for all topics are correct. <?php topic_time(“D M j, Y g:i a”); ?>
On post.php, the displayed time appears to be subtracting 4 hours from the local time for the first post only. The times for all subsequent posts are correct. <?php echo date(“D M j, Y g:i a”, bb_offset_time(strtotime($bb_post->post_time))); ?>
Any ideas why the time would be different (and incorrect) for only the first forum on front-page.php and only the first post on post.php?
- You must be logged in to reply to this topic.