From: konrad Date: Sun, 23 Jan 2011 20:30:52 +0000 (+0000) Subject: make language manager compatible with PHP 5.2 X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=7f1e387c819ce54743ed4b47c752a4019b86cb26;p=web%2Fkonrad%2Fsmoke.git make language manager compatible with PHP 5.2 git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@714 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33 --- diff --git a/www/inc/classes/language_manager.php b/www/inc/classes/language_manager.php index ee12055..42eef99 100644 --- a/www/inc/classes/language_manager.php +++ b/www/inc/classes/language_manager.php @@ -133,8 +133,7 @@ class LanguageManager { $out=""; //parse - $time=new DateTime; - $time->setTimestamp($date+0); + $time=new DateTime("@".($date+0),$this->timezone); $time->setTimeZone($this->timezone); $inp=false; for($i=0;$i