sscarpa / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

PHP warning related to io/apiCurlIO.php #62

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using 
(http://google-api-php-client.googlecode.com/files/google-api-php-client-0.4.7.t
ar.gz) on OS X 10.6 running PHP version 5.3.6.

When I run the sample code on 
(http://code.google.com/p/google-api-php-client/), it says:

    A PHP Error was encountered

    Severity: Warning

    Message: strtotime() [function.strtotime]: 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/Los_Angeles' for 'PST/-8.0/no DST' instead

    Filename: io/apiCurlIO.php

    Line Number: 226

This is caused by the example code:

    $activities = $plus->activities->listActivities('me', 'public', $optParams);

The file at fault is google-api-php-client/src/io/apiCurlIO.php.

Thanks!

Original issue reported on code.google.com by jji...@google.com on 30 Dec 2011 at 11:26

GoogleCodeExporter commented 8 years ago
Hi,

This error means you need to configure your php.ini file with a correct 
date.timezone setting.

http://nl3.php.net/manual/en/timezones.php

Original comment by chiragsh...@gmail.com on 2 Jan 2012 at 8:31

GoogleCodeExporter commented 8 years ago
Actually, I take that back. Most deployments don't have this setting 
configured, and it should be set to UTC for the purposes of the client library.

Thanks!

Original comment by chirags@google.com on 4 Jan 2012 at 1:32

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by jji...@google.com on 4 Jan 2012 at 6:26