Parašė SenasisUseris· 2011 Bir. 27 00:06:07
#3
Atidaryk
maincore.php failą.
Surask funkciją:
// Format the date & time accordingly
function showdate($format, $val) {
global $settings;
if ($format == "shortdate" || $format == "longdate" || $format == "forumdate") {
return strftime($settings[$format], $val + ($settings['timeoffset']*3600));
} else {
return strftime($format, $val + ($settings['timeoffset'] * 3600));
}
}
Ją ištrink ir vietoj jos įdėk:
// Format the date & time accordingly
function ltdate($op) {
$rights = array("January" => "Sausio", "February" => "Vasario", "March" => "Kovo",
"April" => "Balandžio", "May" => "Gegužės", "June" => "Birželio", "July" => "Liepos",
"August" => "Rugpjūčio", "September" => "Rugsėjo", "October" => "Spalio",
"November" => "Lapkričio", "December" => "Gruodžio");
foreach($rights as $key=>$rightsg) $op = ereg_replace($key, $rightsg, $op);
return $op;
}
function showdate($format, $val) {
global $settings;
if ($format == "shortdate" || $format == "longdate" || $format == "forumdate") {
return ltdate(strftime($settings[$format], $val+($settings['timeoffset']*3600)));
} else {
return ltdate(strftime($format, $val+($settings['timeoffset']*3600)));
}
}