> we ask user for his zip code and currently we also ask for this time
> zone (only US). It's a bit redundant, so I'd like to figure out user's
> time zone based on his zip code.
>
> The problem is that all services I've seen that provide such data,
> provide only time offset and daylight savings flag for each zip code.
> I'd rather have Rails time zone or anything that I can easily map to
> it :)
>
> Or maybe having offset and daylight saving time flag is enough to do
> the mapping myself?

Should be.

I've used http://www.zip-codes.com/zip-code-database.asp on several  
projects.

zip_code |  city   | state | time_zone | day_light_savings
----------+---------+-------+-----------+-------------------
  98501    | OLYMPIA | WA    | 8         | Y

-philip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to