biow0lf / evedev-kb

Automatically exported from code.google.com/p/evedev-kb
1 stars 0 forks source link

Problem with PHP 5.3 with date(), mktime(), strtotime() #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. try to run EDK 4.0.4 with PHP 5.3

What is the expected output? What do you see instead?

date(), mktime(), strtotime() failures

What version of PHP and MySQL does the board run on?

PHP 5.3 / MySQL 5.1.56

What is the url of a page where the error occurs or has occurred?

http://senum.net/kbtest/

Please provide any additional information below.

If the PHP.ini is set to European Timezone this ffailure happend

Original issue reported on code.google.com by toxicai...@gmail.com on 2 Feb 2012 at 11:12

GoogleCodeExporter commented 9 years ago
"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."

The error will go away if you edit your php.ini file to contain date.timezone = 
Europe/Berlin

Original comment by kovellia on 2 Feb 2012 at 11:53

GoogleCodeExporter commented 9 years ago
The Timezone is set correct....

phpinfo()

date/time support   enabled
"Olson" Timezone Database Version   2011.14
Timezone Database   internal
Default timezone    Europe/Berlin

Is there another hint???

You can look on the errors on http://kb.senum.net or http://senum.net/testkb/

Original comment by toxicai...@gmail.com on 6 Feb 2012 at 3:01

GoogleCodeExporter commented 9 years ago
Problem solved.

You need to set the default Timezone in index.php

// Set up default timezone.
date_default_timezone_set('Europe/Berlin');

Original comment by toxicai...@gmail.com on 6 Feb 2012 at 8:23

GoogleCodeExporter commented 9 years ago
i seem to have the same issue i added to index.php and also my phphinfo shows i 
running 5.3.24
// Set up default timezone.
date_default_timezone_set('Europe/Berlin');

Original comment by mthomas2...@gmail.com on 5 Apr 2013 at 6:54

GoogleCodeExporter commented 9 years ago
I have added date.timezone = Europe/London to my php.ini file and I have added 
date_default_timezone_set('Europe/London'); as the first line on index.php but 
I am still getting this error.

Original comment by pe...@astbury.com on 4 Sep 2013 at 4:24