[PHP] Managing time zones

2002-04-03 Thread Miguel Cruz
Among other user preferences, I need to record their time zone, so that timestamps retrieved from a database can be displayed in their local time. There are all sorts of schemes for this, providing varying levels of detail (for a lot of detail, have a look in /usr/share/zoneinfo!). I would

Re: [PHP] Managing time zones

2002-04-03 Thread Tom Rogers
Hi One method is to use javascript to get the clients date/time then create a diff between that and your time and use it to change the display times. Here is a demo of getting the remote date and time pre html head titleUntitled/title ?if(!isset($Submit)):? script

Re: [PHP] Managing time zones

2002-04-03 Thread Tom Rogers
Hi This time without the html ... sorry :) One method is to use javascript to get the clients date/time then create a diff between that and your time and use it to change the display times. Here is a demo of getting the remote date and time head titleUntitled/title