i have some timedate information of my users in my database. Also i have the timezone of all my users.
Any time a user logs in to my web, a mensage popup showing the last time he logs in. This datetime is stored on mysql database using the datetime format and the SERVER TIMEZONE (no the user datetime).
All this simple by:
mysql_query("UPDATE ".$this->tablename." SET last_login = NOW()
WHERE email = '".$_SESSION['email_of_user']."';");
What i want is to convert this stored datetime to my user timezone (stored in my database).