Временной сдвиг
<?php
function date_fixed($timestamp, $format="d.m.y / H:i"){
global $config_clocks,$sitetime;
if(empty($timestamp)){$timestamp=$sitetime;}
$sdvig=$config_clocks*3600;
$datestamp = date($format,$timestamp+$sdvig);
$today = date("d.m.y",$sitetime+$sdvig);
$datestamp = str_replace($today,"Сегодня",$datestamp);
$datestamp = str_replace("January","Января",$datestamp);
$datestamp = str_replace("February","Февраля",$datestamp);
$datestamp = str_replace("March","Марта",$datestamp);
$datestamp = str_replace("April","Апреля",$datestamp);
$datestamp = str_replace("May","Мая",$datestamp);
$datestamp = str_replace("June","Июня",$datestamp);
$datestamp = str_replace("July","Июля",$datestamp);
$datestamp = str_replace("August","Августа",$datestamp);
$datestamp = str_replace("September","Сентября",$datestamp);
$datestamp = str_replace("October","Октября",$datestamp);
$datestamp = str_replace("November","Ноября",$datestamp);
$datestamp = str_replace("December","Декабря",$datestamp);
return $datestamp;
}
?>