Quick question about XML created_date

0 views
Skip to first unread message

sverige_...@hotmail.com

unread,
Mar 3, 2008, 2:24:59 PM3/3/08
to Twitter Development Talk
Hi!

I was just wondering if theres any way to bring the users customized
timezone settings when curling the user_timeline.xml, rather than
having to trick around with php time-functions to get it right.

As it works now it seems to send out GMT time. It would be much neater
if you switched your twitter-settings, it got right on the homepage/
app too.


I'm using this code to fetch the data..


## Choose your target
$target = "http://twitter.com/statuses/user_timeline.xml";
#$target = "http://twitter.com/statuses/friends_timeline.xml";

## OK, no more editing. Times up lets do this!
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target);
curl_setopt($ch, CURLOPT_USERPWD, $login);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

## Grabbing the data
$gettwit = curl_exec($ch);

## Parsing the data
$twitters = new SimpleXMLElement($gettwit);


Thanks in advance!

Alex Payne

unread,
Mar 3, 2008, 7:19:47 PM3/3/08
to twitter-deve...@googlegroups.com
Good suggestion. I'll add that info to the users/show method soon.

--
Alex Payne
http://twitter.com/al3x

Reply all
Reply to author
Forward
0 new messages