In fact, modify the timezone setting for MAMP is to modify PHP’s timezone setting. If different settings for PHP’s timezone and your computer timezone, the PHP and MySQL logs time will be not correct.
Key to solve the problem is to find the right PHP configuration file php.ini.
Start the MAMP servers, click “Open start page” and enter the phpinfo tab, see the current MAMP PHP version you are running, for example “PHP Version 5.4.4”, through the Finder into MAMP installation directory, note the PHP.ini file should be MAMP/bin/php/php5.4.4/conf/php.ini, not MAMP/conf/ php5.4.4/php.ini.
Open the correct PHP.ini file, locate the “[Date] section, set the time zone to the correct value.