index.php file is changed and it can write into a mysql table. But date format is not correct