I know that I may be a little late in answering this, but I see on several sites that you specify to set the correct time zone in MAMP.
It should be noted that for the php file, there are two locations for the php.ini file. MAMP can load it from a different path than the one you are editing.
For example, let's say we use php 5.3. Here are two php.ini file locations that can confuse someone that you can edit.
/Applications/MAMP/bin/php/php5.3/conf/php.ini
It seems you are editing it in this place below:
/Applications/MAMP/conf/php5.3/php.ini
Editing the time zone in the second way did not work for me, but editing what was in the first. You may be editing the wrong file, although it looks the same. I tested this on my version. Running <?php phpinfo(); ?> <?php phpinfo(); ?> in the php file and checking the path to the php.ini file will always show the correct path.
It is also easy to specify using double quotes around the date.timezone value will work. For example, the following works in my php.ini file.
date.timezone = "America/Vancouver"
Also, the default value was enclosed in double quotes.
I also used MAMP version 2.1.1 when testing this.
JoeMoe1984
source share