Index: branches/5.1.x/core/kernel/application.php =================================================================== diff -u -N -r13581 -r13613 --- branches/5.1.x/core/kernel/application.php (.../application.php) (revision 13581) +++ branches/5.1.x/core/kernel/application.php (.../application.php) (revision 13613) @@ -1,6 +1,6 @@ LoadCache(); $this->InitConfig(); + $site_timezone = $this->ConfigValue('Config_Site_Time'); + + if ($site_timezone) { + putenv('TZ=' . $site_timezone); + } + if (defined('DEBUG_MODE') && $this->isDebugMode()) { $this->Debugger->appendTimestamp('Loaded cache and phrases'); } @@ -1474,6 +1480,17 @@ } /** + * Checks, that we have given block defined + * + * @param string $name + * @return bool + */ + function ParserBlockFound($name) + { + return $this->Parser->blockFound($name); + } + + /** * Allows to include template with a given name and given parameters * * @param Array $params Parameters to pass to template. Reserved parameter "name" used to specify template name. @@ -3055,15 +3072,6 @@ } } - function TimeZoneAdjustment($time_zone = null) - { - if ($time_zone == 'GMT') { - return (-1) * adodb_date('Z'); - } - $target_zone = isset($time_zone) ? $time_zone : $this->ConfigValue('Config_Site_Time'); - return 3600 * ($target_zone - $this->ConfigValue('Config_Server_Time')); - } - function ApplicationDie($message = '') { $message = ob_get_clean().$message;