Hello,
I have 1 hour of difference between the time of my tweet on my Twitter acount and twitter widget on my website under Choice... The time parameter is the same on my wordpress and twitter acount... Anyone have a idea about this problem? Thanks
Hello,
I have 1 hour of difference between the time of my tweet on my Twitter acount and twitter widget on my website under Choice... The time parameter is the same on my wordpress and twitter acount... Anyone have a idea about this problem? Thanks
Maybe you need to change the UTC offset or the daylight saving time setting? You can "hardcode" the time difference if required though - search for following code in choices\framework\php\class-framework-widgets.php:
if($time == "yes") $output .= '<div class="tweet-time">'.date_i18n( $time_format, $message['created'] + $message['user']['utc_offset']).'</div>';
and replace $message['user']['utc_offset'] with:
$message['user']['utc_offset'] + 3600
or
$message['user']['utc_offset'] - 3600
(the first code will add one hour to the offset, the second one removes one hour).
Hi solljul,
I can't say for sure but it might be using your server time instead of twitters. You can check with your web host to see what the server time is set to and that may be it.
Regards,
Devin
Hi!
Thanks for your answers!
Devin, I had check with my web host and the server's time is OK, I think it's about summer/winter time... I'll see at the end of this month :o) The UTC Wordpress setting was OK and Twitter account time setting too...
But Dude, yout tip works fine for me, thank you very much!
Best regards.
Jul
Hi!
Glad that we could help you :)
Regards,
Peter
You must log in to post.