“Timestamp out of bounds” error – Muffin Twitter Widget

I was pushing my latest client project live today and ran into an “Timestamp out of bounds” error with the Muffin Twitter Widget. After much research, I stumbled across a fix at http://babuskov.tumblr.com/post/19779184235/twitter-timestamp-out-of-bounds-solved. Since the site is hosted in the Mountain Time Zone (-7 hours from UTC), in the \wp-content\themes\bretheon\functions\plugins\twitteroauth.php file, on line 485-490, I had to change it from:

/**
* util function: current timestamp
*/
private static function generate_timestamp() {
return time();
}

to:

/**
* util function: current timestamp
*/
private static function generate_timestamp() {
return time()+7*3600;
}

This was necessary to get the Twitter server and the hosted site server within an appropriate time gap and allow the feed to be displayed.


Posted

in

by