News for hackers. Stuff that matters.
Re:Ask HN: Timezone in web apps by mryan on Sunday May 06, 2012 @05:11PM (#3936334)
At the infrastructure: yes, all servers should be UTC, (almost) no question.

As for guessing timezones - I use GeoIP to get the user's approximate location, then figure out the timezone based on that. It is not perfect, but I needed something that does not require JS.

Re:Ask HN: Timezone in web apps by zmillman on Sunday May 06, 2012 @07:01PM (#3936706)
If you don't need the user's timezone immediately for their first request (which I assume is why you can't use a javascript solution), using getTimezoneOffset() works pretty well.

Shameless plug: I wrote a gem to handle this in Rails ( https://github.com/zmillman/browser-timezone )

Re:Ask HN: Timezone in web apps by ecesena on Sunday May 06, 2012 @05:58PM (#3936478)
right, geoIP is another interesting solution... the best is to combine several guessing techniques, when available