• Resolved Yannick Lefebvre

    (@jackdewey)


    I just upgraded a site where I am using Fetch Tweets to the latest version. When I checked the output, I realized that all items are displaying as having been posted 47 years ago.

    Here is an example of a page where this is happening:

    https://www.d-box.com/training-and-simulation/defense/

    Click on the News tab to see the output from Fetch Tweets. Is this an issue with the plugin, or more upstream with the data that the Twitter API provides? Thanks for looking into this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    I suspect you are using a custom template or the Feeder extension. If you are using the Feeder extension, updating Fetch Tweets to 2.5.1 should solve the issue.

    If you are using a custom template, please find a line that involves with created_at in your template.php file, something like the following.

    
    <?php echo human_time_diff( strtotime( $aTweet[ 'created_at' ] ), current_time('timestamp') - $iGMTOffset ) . ' ' . __( 'ago', 'fetch-tweets' ); ?>
    

    and replace it with

    
    <?php echo FetchTweets_PluginUtility::getLegibleTimeDifference( $aTweet[ 'created_at' ] ) . ' ' . __( 'ago', 'fetch-tweets' ); ?>
    

    Hope it helps.

    Thread Starter Yannick Lefebvre

    (@jackdewey)

    Indeed. That did the trick. Sorry for the late response.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘All tweets show as posted 47 years ago’ is closed to new replies.