From a0bce3a49e39744979fbf5b4875138ade7cea78f Mon Sep 17 00:00:00 2001 From: Jan Pingel Date: Fri, 16 May 2014 02:12:13 -0700 Subject: [PATCH] Fix for time zone being off --- displaytweets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/displaytweets.php b/displaytweets.php index 0ec1acc..a8c6d53 100644 --- a/displaytweets.php +++ b/displaytweets.php @@ -601,7 +601,7 @@ public function show() { $datetime_format = apply_filters( 'displaytweets_datetime_format', "l M j \- g:ia" ); /** Get the date and time posted as a nice string */ - $posted_since = apply_filters( 'displaytweets_posted_since', date_i18n( $datetime_format , strtotime( $tweet->created_at ) ) ); + $posted_since = apply_filters( 'displaytweets_posted_since', date_i18n( $datetime_format , strtotime( $tweet->created_at ) + ( get_option('gmt_offset') * 3600 ) ) ); /** Filter for linking dates to the tweet itself */ $link_date = apply_filters( 'displaytweets_link_date_to_tweet', __return_false() );