$upload_date = date('y-m-d'); $upload_time = date('G:i:s'); PHP: when i check from database, i found that the time which is stored into database in not correct. the time in database is like below:- 2008-11-09 08:31:09 (database data) 2008-11-09 4:34 PM (my pc time) how to show the time in correctly?
You can try changing the time zone in your PHP script - http://us2.php.net/manual/en/function.date-default-timezone-set.php Another way to do it is with putenv function like: putenv("TZ=US/Eastern"); Is this your server or is it shared?