Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter verse.thekeg

    (@versethekeg)

    Marked as resolved

    Thread Starter verse.thekeg

    (@versethekeg)

    Hi Aaron,

    I managed to get it working but I am not sure how it will translate on sites from around the world. Essentially I modified this code

    // actual functions that spits out the code
    function jtweets_twitter_formatter($twitter_timestamp)
    {
    	//Format from JSON: Sat Mar 16 18:27:08 +1000 2013
    	$epoch_timestamp = strtotime( $twitter_timestamp );
    	$twitter_time = human_time_diff($epoch_timestamp, current_time('timestamp') ) . ' ago';

    To This

    // actual functions that spits out the code
    function jtweets_twitter_formatter($twitter_timestamp)
    {
    	//Format from JSON: Sat Mar 16 18:27:08 +1000 2013
    	$epoch_timestamp = strtotime( $twitter_timestamp );
    	$twitter_time = human_time_diff($epoch_timestamp, current_time('timestamp') -36000) . ' ago';
    Thread Starter verse.thekeg

    (@versethekeg)

    Hi Ian,

    That does exactly what I wanted it to, thank you very much for your help.

    Take care and have fun!

    Thread Starter verse.thekeg

    (@versethekeg)

    Hi Aaron,

    Not a chance, I’m happy to set up a remote connection between our two computers on day though using teamviewer or similar.

    We would have to organise a time that works for us both of course.

Viewing 4 replies - 1 through 4 (of 4 total)