I'm following Google developer's suggestions to use GA API with PHP (https://developers.google.com/analytics/devguides/config/mgmt/v3/quickstart/service-php).
When I run the last step (On terminal, on mac): -Run the sample using:
php HelloAnalytics.php
I'm getting the following message:
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): It is not safe to rely on the system's 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.
I've updated my php.ini file to the right timezone:
date.timezone = "America/Bogota"
But I keep getting the same message.