From 23b199a40612668d06cc52de57cd179049cdbb0f Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Tue, 22 Sep 2009 20:59:59 +0000 Subject: [PATCH] get rid of annoying warning git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@669 c66351dc-e62f-0410-b875-e3a5c0b9693f --- src/messenger/webim/libs/common.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/messenger/webim/libs/common.php b/src/messenger/webim/libs/common.php index 292522a5..f6f82233 100644 --- a/src/messenger/webim/libs/common.php +++ b/src/messenger/webim/libs/common.php @@ -141,6 +141,12 @@ $current_locale = get_locale(); $messages = array(); $output_encoding = array(); +if(function_exists("date_default_timezone_set")) { + // TODO try to get timezone from config.php/session etc. + // autodetect timezone + @date_default_timezone_set(function_exists("date_default_timezone_get") ? @date_default_timezone_get() : "GMT"); +} + function get_locale_links($href) { global $current_locale; $localeLinks = array();