Tweetable icon indicating copy to clipboard operation
Tweetable copied to clipboard

Timestamp discrepancy

Open outhouse opened this issue 11 years ago • 3 comments

I've noticed a discrepancy between timestamps for tweets fetched through this plugin / getmytweets api.

Example -

Original Tweet: 06/02/2014 12:33 AM https://twitter.com/umutm/status/431344872877228032

Same tweet as displayed through Tweetable : 06/01/2014, 08:49 http://jsfiddle.net/Rur72/

outhouse avatar Feb 09 '14 17:02 outhouse

I will look into this.

philipbeel avatar Feb 09 '14 17:02 philipbeel

awesome, thanks

outhouse avatar Feb 09 '14 17:02 outhouse

solved. change

tweetMonthInt = n++; by tweetMonthInt = n+1;

full code: for(n=0; n<12; n++) { if(shortMonths[n] === tweet.tweet_date.substr(4, 3)) { tweetMonthInt = n+1; tweetMonth = (tweetMonthInt <= 9) ? '0' + tweetMonthInt : tweetMonthInt ; break; } }

dracnet avatar Apr 07 '14 11:04 dracnet