Twitter feed time is showing in Spanish


#1

We are finishing up a website and all of a sudden the time stamp that would normally say something like “37 minutes ago” is showing up in Spanish. Any thoughts as to why this is happening?


#2

What exactly is rendering tweets in this integration? Are you using a widget? Embedded tweets? Rendering tweets yourself?


#3

I’m using this:

$twitter_feed_url = “http://twitter.com/statuses/user_timeline/$username.xml?count=1”;
$feed_buffer = file_get_contents($twitter_feed_url);

Then outputting the returned xml into a nice tidy little display. You can see what I’m talking about if you go to inboundwriter.com


#4

It’s probably not Twitter causing this for you – we report times in UTC within the tweets themselves – anything that’s translating that to a relative time “37 minutes ago” is some other code than what’s emitted from that API URL.

Also, good to note that the API URL format you’re using is deprecated and won’t work very much longer… you should use https://api.twitter.com/1/statuses/user_timeline.xml?screen_name=$username.xml instead.


#5

#6