M BUZZ CRAZE NEWS
// news

Timezone error in php.ini on lamp

By Mia Morrison

I am trying to learn SOAP(Simple Object Access Protocol) following an example mentioned here downloaded the SOAP library , including the file lib/nusoap.php which gives a warning which is

Warning: gettimeofday(): Invalid date.timezone value 'UTC+05:00', we selected the timezone 'UTC' for now. in /var/www/php-practice/prac/lib/nusoap.php on line 856

I have tried to follow link edited the php.ini and it does no good my region is pakistan and i do not know what to put the timezone for that i tried google which gave me

date.timezone ='Pakistan Time Zone (UTC+05:00)'
date.timezone ='Pakistan'
date.timezone ='UTC+05:00'

I tried all these in php.ini.But non worked for me.

3

1 Answer

Thanks to @Rinzwind

  • Goto the link
  • Find your time zone (in my case it is Asia/Karachi)enter image description here
  • Open your php.ini ( sudo gedit /etc/php5/apache2/php.ini ) and find( ctrl+f ) "Date"

  • Add your timezone enter image description here

And you are done !

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy