From 58af5dd74b5ced299a53f569c9fd81c2331794a8 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 16 Sep 2009 22:30:38 +0000 Subject: [PATCH] Removing php5 date warnings --- CHANGELOG.txt | 2 ++ includes/date_functions.inc | 2 ++ 2 files changed, 4 insertions(+) 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) { -- 2.30.2