crnr / timthumb

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

PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings #261

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

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

It works fine producing the thumbnail image. I only get this error in my log 
file.

2011/09/07 22:33:07 [error] 23392#0: *32424 FastCGI sent in stderr: "PHP 
Warning:  strtotime(): 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 'Europe/Berlin' for 'CEST/2.0/DST' instead in 
/var/www/chwisgi.com/public_html/tt/index.php on line 339" while reading 
response header from upstream, client: 213.89.102.45, server: chwisgi.com, 
request: "GET 
/tt/?src=/wp-content/uploads/for-illustration-only.jpg&w=100&q=100 HTTP/1.1", 
upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "chwisgi.com", 
referrer: "http://chwisgi.com/page/2/?s=Aultmore"

What version of the product are you using? On what operating system?
Debian, TT 2.8, NGINX, PHP5-FPM

Please provide any additional information below.
Just contact me if you need any more information.

Original issue reported on code.google.com by jenswe...@gmail.com on 7 Sep 2011 at 8:54

GoogleCodeExporter commented 8 years ago
line 946 in a default /etc/php5/fpm/php.ini

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/London"

Or any of the others available from : http://www.php.net/manual/en/timezones.php

Had the same error pop up with TT2.8 php5-fpm nginx on debian squeeze.

Original comment by edouard....@gmail.com on 18 Sep 2011 at 9:51

GoogleCodeExporter commented 8 years ago
Hi - please update to the latest version of TimThumb. This was fixed August 21st

Original comment by BinaryMoon on 18 Sep 2011 at 8:34