Date Issues Persist After Setting php.ini Timezone

91 views
Skip to first unread message

Benjamin Page

unread,
Apr 9, 2014, 7:36:00 PM4/9/14
to adwor...@googlegroups.com
Hello All,

Attempting my first local setup, running PHP client library version 5.2.2, MAMP with PHP version 5.4.10 on mac os x. I believe my auth.ini file to be configured correctly, and I updated my php.ini file to reflect America/Chicago timezone to match my system time.

I am trying to run any of the examples (in /examples/AdWords/v201402/BasicOperations/) from terminal using ">php GetAdGroups.php" (example)

The error I receive is:
PHP Warning:  date(): 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 'America/Chicago' for 'CDT/-5.0/DST' instead in /adwords-examples-and-lib-5.2.2/lib/Google/Api/Ads/Common/Util/Logger.php on line 236
An error has occurred: [QuotaCheckError.INCOMPLETE_SIGNUP @ ; trigger:'<null>'

Any insight into how to clear this issue up? I feel it's the last roadblock to getting started.

Thank you for any feedback & assistance.

Ray Tsang (AdWords API Team)

unread,
Apr 10, 2014, 5:59:37 PM4/10/14
to adwor...@googlegroups.com
Benjamin,

Please send me the php.ini content.  PHP 5.2 has been end-of-life for more than 3 years now.  Please do not use it and upgrade to a current version of PHP.

Secondly, it looks like you may be using a timezone not recognized by your system.

The INCOMPLETE_SIGNUP issue is unrelated.  Let me know once you've cleared up the timezone.  We'll get you on the right track for INCOMPLETE_SIGNUP error.

Cheers,

Ray

Benjamin Page

unread,
Apr 12, 2014, 6:31:04 PM4/12/14
to adwor...@googlegroups.com
Hey Ray,

Thanks for your response. I should have specified, I'm running the AdWords API PHP lib v5.2, but my PHP version is 5.4.10.

php.ini is attached, and I chose "America/Chicago" based on the php.net documentation.
php.ini

Ray Tsang

unread,
Apr 15, 2014, 1:49:29 PM4/15/14
to adwor...@googlegroups.com
Benjamin,

What do you see when you do `php -i | grep timezone`?
Also, where is the php.ini located?  Can you run `php -i | grep php\.ini` to make sure it's in the correct path?

Thanks,

Ray
Reply all
Reply to author
Forward
0 new messages