I have added my timezone to date.timezone in ~/.parts/etc/php5/php.ini but my PHP script that I execute on the console keep saying
We selected the timezone 'UTC' for now,
but please set date.timezone to select your timezone.
Is there any solution for this?
UPDATES:
Try with:
date_default_timezone_set
method, which is used by all date/time functions.
UPDATE:
With PHP date/time settings you have to be very explicit, and don't rely on some predefined settings.
You can use the -c option when using php cli to specify a php.ini file to use.
For my Nitrous box, I use:
php -c /home/action/.parts/etc/php5/php.ini yourcommandshere
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With