opless / phpliteadmin

Automatically exported from code.google.com/p/phpliteadmin
0 stars 0 forks source link

date_default_timezone_get Warning #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
> What steps will reproduce the problem?
1. Fresh install
2. Put on a server that has full error reporting, even warnings and notices.
3. Browse to page.

> What is the expected output? 

A login form with no errors.

> What do you see instead?

Warning: date_default_timezone_get() [function.date-default-timezone-get]: 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/New_York' 
for 'EDT/-4.0/DST' instead in /home/mister-user/public_html/database/admin.php 
on line 68

> What version of the product are you using?

1.8.5

> On what operating system?

Ubuntu Linux 10.04 LTS

Please provide any additional information below.

Original issue reported on code.google.com by volom...@gmail.com on 1 Jun 2011 at 9:22

GoogleCodeExporter commented 9 years ago
This warning is harmless. Turn off error reporting, and it will go away. There 
is no clean way around it. I tried adding the line 
"date_default_timezone_set(date_default_timezone_get());", which fixes this 
warning most of the time, but apparently for you, it is causing it. 

Original comment by daneirac...@gmail.com on 2 Jun 2011 at 7:31

GoogleCodeExporter commented 9 years ago
Just add a @ before date_default_timezone_set(date_default_timezone_get()); 
like this:

@date_default_timezone_set(date_default_timezone_get());

Original comment by serbanbo...@gmail.com on 4 Jan 2012 at 10:38