Removing php5 date warnings
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 16 Sep 2009 22:30:38 +0000 (22:30 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 16 Sep 2009 22:30:38 +0000 (22:30 +0000)
CHANGELOG.txt
includes/date_functions.inc

index 2d4abec873c9c6084a2a413ab6c9770a24f94d17..df3cd2eac5f2f1c28ba619905cc4b050a86f3c9b 100644 (file)
@@ -26,6 +26,8 @@ $ config.php
   /themes/default/default.css
   /themes/aqua/default.css
   /themes/cool/default.css
+# Removing php5 date warnings
+$ /includes/date_functions.inc
   
 15-Sep-2009 Janusz Dobrowolski/Joe Hunt
 # Fixed journal entry type and systype selectors
index 5f9f0bc802e13fe72e6ef0da9cfba26e6e0adf1e..e44f083b41d424c55f1589fab3e87c1510446e1b 100644 (file)
@@ -18,6 +18,8 @@ this can be a string either "d/m/Y" for UK/Australia/New Zealand dates or
 "m/d/Y" for US/Canada format dates
 
 */
+if(function_exists("date_default_timezone_set") and function_exists("date_default_timezone_get"))
+       @date_default_timezone_set(@date_default_timezone_get());
 
 function __date($year, $month, $day)
 {