Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000050 [MyDNS-NG] Global minor always 2010-03-24 09:28 2010-03-26 20:46
Reporter itamarjp View Status public  
Assigned To jorge
Priority normal Resolution fixed  
Status resolved   Product Version 1.2.8.28
Summary 0000050: fix images in php > 5.3.0
Description Warning: date() [<a href='function.date'>function.date</a>]: 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 s
elected 'America/Sao_Paulo' for 'BRT/-3.0/no DST' instead in admin.php on line 1332




diff -ruNp a/admin.php b/admin.php
--- a/admin.php 2010-03-24 06:17:49.000000000 -0300
+++ b/admin.php 2010-03-24 06:21:46.000000000 -0300
@@ -1329,6 +1329,8 @@ function send_img() {
   header("Content-Type: image/png");
 
   /* A Last-Modified: header keeps the image from being reloaded every time */
+ /* date_default_timezone_set avoid warning about It is not safe to rely on the system's timezone settings. */
+ date_default_timezone_set('UTC');
   header("Last-Modified: " . date("r", filectime($_SERVER['SCRIPT_FILENAME'])));
   header("Content-Length: " . strlen($data));
   echo $data;
Additional Information Can you apply this patch ?
Tags No tags attached.
Attached Files ? file icon fix.patch [^] (597 bytes) 2010-03-24 09:28

- Relationships

-  Notes
(0000145)
jorge (administrator)
2010-03-26 20:46

Added on:

http://mydns-ng.svn.sourceforge.net/viewvc/mydns-ng?view=rev&revision=217 [^]

- Issue History
Date Modified Username Field Change
2010-03-24 09:28 itamarjp New Issue
2010-03-24 09:28 itamarjp File Added: fix.patch
2010-03-26 20:46 jorge Note Added: 0000145
2010-03-26 20:46 jorge Status new => resolved
2010-03-26 20:46 jorge Fixed in Version => Trunk
2010-03-26 20:46 jorge Resolution open => fixed
2010-03-26 20:46 jorge Assigned To => jorge


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker