This is a very famous question that has already been asked which I am currently implementing as well. My objective is to calculate the relative time which displays 5 minutes ago, 5 hours ago etc.,
I am trying to fetch the tweets of a user with the timeline API.
Example: http://api.twitter.com/1/statuses/user_timeline.json?screen_name=jonskeet
The main problem I am faced with is the problem the client's DateTime.Now returns. Remember, I am doing this in my mobile device which can have + or - 5 minutes in time difference because of which I am seeing weird values (like 5 minutes ago for just now posted tweets)
How to tackle this issue? I see that the twitter api does not return me a server time for me to do relative calculations.