Timezone Data

144 views
Skip to first unread message

Ryan Chouinard

unread,
May 18, 2009, 5:10:33 PM5/18/09
to Twitter Development Talk
Quick searches of the group didn't yield much information for me, so
forgive me if this has been discussed before.

I'm working on an application that could benefit from knowing the
user's timezone. While I could use the current UTC offset, knowing the
fixed zone would be the ideal solution. Currently, "time_zone" returns
a general string (ie "Eastern Time (US & Canada)"). Is there a
reason for this return format instead of using, say, the standard
Olson / Zoneinfo / tzdata name (ie "America/New_York")?

-- Ryan Chouinard

Abraham Williams

unread,
May 18, 2009, 8:37:13 PM5/18/09
to twitter-deve...@googlegroups.com
Just take the timezone list from: https://twitter.com/account/settings and convert it on your end.
--
Abraham Williams | http://the.hackerconundrum.com
Hacker | http://abrah.am | http://twitter.com/abraham
Web608 | Community Evangelist | http://web608.org
This email is: [ ] blogable [x] ask first [ ] private.
Sent from Mountain View, California, United States

Abraham Williams

unread,
May 18, 2009, 8:37:36 PM5/18/09
to twitter-development-talk
Just take the timezone list from: https://twitter.com/account/settings and convert it on your end.

On Mon, May 18, 2009 at 14:10, Ryan Chouinard <rchou...@gmail.com> wrote:

rchouinard

unread,
May 18, 2009, 9:26:56 PM5/18/09
to Twitter Development Talk
Which still doesn't give me a standard list. I can spend an hour and
map the Twitter names to standard timezone names, but my thought was
that it would serve the development community better if the standard
zone names were returned from the start. Just my $.02 cents, though.
You can keep the change. :-)


On May 18, 8:37 pm, Abraham Williams <4bra...@gmail.com> wrote:
> Just take the timezone list from:https://twitter.com/account/settingsand
> convert it on your end.
>

rchouinard

unread,
May 19, 2009, 9:03:19 AM5/19/09
to Twitter Development Talk
I can get a list of Twitter's zones easily enough, and I understand
that. While I could spend time going through Twitter's timezone select
box and manually map the values to Olson zone names (which is what I'm
sure I'll end up doing), this could be made easier if Twitter simply
returned the standardized names.

I'm not familiar with Ruby, so this may very well be how Ruby lists
and names the zones. My experience with other languages, however, is
that the Olson / tzdata / "Unix" names are fairly standard and plug
right in. I'm not asking where I can find Twitter's zone names, I'm
asking why Twitter returns what it does, and if looking into returning
something else is warranted.

-- Ryan Chouinard


On May 18, 8:37 pm, Abraham Williams <4bra...@gmail.com> wrote:
> Just take the timezone list from:https://twitter.com/account/settingsand
> convert it on your end.
>

Abraham Williams

unread,
May 19, 2009, 10:01:39 AM5/19/09
to twitter-deve...@googlegroups.com
I would say the API will try to be consistent with the web interface and those are the strings the web interface currently uses. You can try to convince http://help.twitter.com to change the strings used.
Sent from San Francisco, California, United States

Nial

unread,
May 19, 2009, 1:25:12 PM5/19/09
to Twitter Development Talk
It would be helpful if you could post the results of your conversion
here for other users!

Moonman239

unread,
Jun 3, 2009, 11:59:27 AM6/3/09
to Twitter Development Talk
It probably accounts for Daylight Savings Time. It would probably be
helpful just to have a database with time zone information stored in
it - of course, you'd need to correct for DST.
Reply all
Reply to author
Forward
0 new messages