0

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
    See php.net/manual/en/timezones.asia.php for valid timezones. I did not see Pakistan in there and they are all of type {continent/place} so you might need to pick one from there.
    – Rinzwind
    Dec 27, 2013 at 10:31
  • That helped me :)
    – Waqas
    Dec 30, 2013 at 15:52
  • 1
    Post it as an answer and you'll get some extra rep ;)
    – Rinzwind
    Dec 30, 2013 at 16:10

1 Answer 1

1

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
  • Remember to sudo systemctl restart apache2 to apply changes. Dec 31, 2019 at 14:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .