I also specified DateTime parameters in my php.ini. In my case, the editable php.ini was on
/Applications/MAMP/bin/php/php7.1.1/conf/php.ini
since I saw the path from info.php (in the "Loaded configuration file") that I generated on localhost.
It turns out that this is not the one that is used. Try instead:
php -i | grep php.ini
And let's see what a way out is. My was:
/usr/local/etc/php/5.6 Loaded Configuration File => /usr/local/etc/php/5.6/php.ini PHP Warning: Unknown: It is not safe to rely on the system timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in Unknown on line 0
And then I just go to "/usr/local/etc/php/5.6" and edit the date.timezone line: delete the comment (;) and add "Europe / Berlin" (or, in your case, "Asia / Jakarta" ".)
Try "php -i | grep php.ini" again and the php warning message should disappear.
php -i | grep php.ini Configuration File (php.ini) Path => /usr/local/etc/php/5.6 Loaded Configuration File => /usr/local/etc/php/5.6/php.ini
source share