Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: PHP date.timezone problem ? |
|
Author |
|
Hereami
Joined: 15 Apr 2013 Posts: 9
|
Posted: Wed 17 Apr '13 13:09 Post subject: PHP date.timezone problem ? |
|
|
Hello I keep getting
Warning: phpinfo(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in C:\Apache24\htdocs\test.php on line 2
I tried a couple of things and my last attempt was
date.timezone = "Europe/London"
which I put in the php.ini file but still get the same warning.
Help please. |
|
Back to top |
|
admin Site Admin
Joined: 15 Oct 2005 Posts: 692
|
Posted: Wed 17 Apr '13 15:46 Post subject: |
|
|
Here works in php.ini: date.timezone = Europe/Amsterdam , without the quotes. |
|
Back to top |
|
Hereami
Joined: 15 Apr 2013 Posts: 9
|
Posted: Wed 17 Apr '13 17:20 Post subject: |
|
|
admin wrote: | Here works in php.ini: date.timezone = Europe/Amsterdam , without the quotes. |
Hi Thank you for your help.
I put
date.timezone = Europe/Amsterdam
in php.ini and it did not work then I realised that I hadn't restarted apache and when I did it all worked fine so I put in
date.timezone = Europe/London
without the quotes restarted apache and it all worked okay.
Thank you for your help. |
|
Back to top |
|
|
|
|
|
|