I am creating a social networking type website. The website is doing great in regards to traffic etc. I have come across a problem where there is a live news feed of peoples statuses and interactions. When I post something from here (Atlanta GA), is states it was posted under 1 minute ago. To people in Australia, it says it was posted 16hrs ago.
I am using a LAMP setup, with php 5. As far as the JQuery plug im using timeago to make the abbr’s look pretty.
I am not sure if I need to be setting the PHP timezone for users based on their location, or the DB timezone based on their location.
I would have all of the dates be kept in something like UTC and do the comparisons based on that that. If you need to display a date just transform it from UTC into whatever timezone a specific user is in (either on your server or via JS).