WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Twitter for WordPress] Changing date format (5 posts)

  1. supervee
    Member
    Posted 4 years ago #

    Is there a way to display the timestamp as "12 hours ago" etc instead of "2009/10/09" ?

    http://wordpress.org/extend/plugins/twitter-for-wordpress/

  2. consumedsoul
    Member
    Posted 4 years ago #

    I'm interested in an answer for this as well, even if I can rearrange the default 2009/10/11 format to something else that'd be great.

  3. Thomas.A
    Member
    Posted 4 years ago #

    @supervee:
    If one or more of your updates is less than 24 hours ago, it is displayed as "12 hours ago", if not - it displays the date.
    To change the 24-hours rule, go to:
    wp-admin -> Widgets -> Edit Twitter for wordpess. Look at line #94. The default is 86400 (number of seconds in a day). Try to change this to a higher number (e.g. 604800 = one week).

    @consumedsoul
    Take a look at line 97 and line 99.

  4. supervee
    Member
    Posted 4 years ago #

    Thanks for your help :)

  5. brotkrus
    Member
    Posted 4 years ago #

    Regardless is there any way to display "3 days ago" ?
    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic