johnstevenson / jsonrpc

A JSON-RPC implementation for PHP
MIT License
44 stars 29 forks source link

Getting Warning. #3

Closed tejastank closed 11 years ago

tejastank commented 11 years ago

Hello,

I have latest code and php5.3-unbuntu.

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 'Asia/Calcutta' for 'IST/5.0/no DST' instead in /var/www/jsonrpc/example/client.php on line 41 Call Stack: 0.0001 328420 1. {main}() /var/www/jsonrpc/example/client.php:0 0.0113 369792 2. date() /var/www/jsonrpc/example/client.php:41

I have set at top date_default_timezone_set('America/Los_Angeles');

I getting this and script not works.

Thanks, Tejas Tank. tejas.tank.mca@gmail.com

tejastank commented 11 years ago

Hello,

I have set $server->setObjectsAsArrays() then getting issues.

Thanks,

johnstevenson commented 11 years ago

Re date-timezone, only the example client uses date functions. You should set the date-timezone in php.ini preferably, if not at the top of your script.

So, does it work or not when you call date_default_timezone_set('America/Los_Angeles'); ?

johnstevenson commented 11 years ago

Re issues with setObjectsAsArrays(). What issues?