From: Joe Hunt Date: Wed, 16 Sep 2009 22:30:38 +0000 (+0000) Subject: Removing php5 date warnings X-Git-Tag: v2.4.2~19^2~1237 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=58af5dd74b5ced299a53f569c9fd81c2331794a8;p=fa-stable.git Removing php5 date warnings --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 2d4abec8..df3cd2ea 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -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 diff --git a/includes/date_functions.inc b/includes/date_functions.inc index 5f9f0bc8..e44f083b 100644 --- a/includes/date_functions.inc +++ b/includes/date_functions.inc @@ -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) {