Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000044 [MyDNS-NG] Global minor always 2010-01-13 20:30 2010-01-13 21:07
Reporter itamarjp View Status public  
Assigned To jorge
Priority normal Resolution fixed  
Status resolved   Product Version 1.2.9.2
Summary 0000044: fix warning about It is not safe to rely on the system's timezone in php 5.3.0
Description fix warning about It is not safe to rely on the system's timezone in php 5.3.0

the same warning described here.

http://wordpress.org/support/topic/285337 [^]
Additional Information here are the fix

[root@server contrib]# svn diff
Index: admin.php
===================================================================
--- admin.php (revision 215)
+++ admin.php (working copy)
@@ -745,6 +745,8 @@
   $now = time();
   $low = $now - (31449600 * 2); /* Time 2 years ago */
   $high = $now + (31449600 * 1); /* Time 1 year hence */
+ /* date_default_timezone_set avoid warning about It is not safe to rely on the system's timezone settings. */
+ date_default_timezone_set('UTC');
   $curyear = (int)strftime("%Y", $now); /* The current year */
   $timestamp = strftime("%Y%m%d", $now); /* The current timestamp */
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000133)
jorge (administrator)
2010-01-13 21:07

Thanks Itamar, Commited on trunk.

- Issue History
Date Modified Username Field Change
2010-01-13 20:30 itamarjp New Issue
2010-01-13 21:07 jorge Note Added: 0000133
2010-01-13 21:07 jorge Status new => resolved
2010-01-13 21:07 jorge Fixed in Version => Trunk
2010-01-13 21:07 jorge Resolution open => fixed
2010-01-13 21:07 jorge Assigned To => jorge


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