make language manager compatible with PHP 5.2
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 23 Jan 2011 20:30:52 +0000 (20:30 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 23 Jan 2011 20:30:52 +0000 (20:30 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@714 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

www/inc/classes/language_manager.php

index ee12055..42eef99 100644 (file)
@@ -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<strlen($format);$i++){