I have a MySQL database that records the time when a given event occurs. There's a web app that show's these times when you load the page BUT its in +0 TimeZone. I want this to show what ever timezone that the user is in.
echo(date('l F jS Y h:i:s A', ($row["date"]/1000)- 3600*6));
The above code shows that if I want the timezone to be central I have to *6. But this would just be the new timezone then and doesn't change based on users location.
Also a added bonus would to be able to display at the top of the page somewhere the users IP address, City and State.
EDIT: Trying to get the UTC timezone # into a $variable. Example being Central Time would = -6.
echo(date('l F jS Y h:i:s A', ($row["date"]/1000)-(3600*(-1*$variable))));