Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Padekite su Lt data

Parašė KiraLT· 2010 Spa. 4 14:10:40
#1

As pasidariau LT data bet kazkodel man naujienose meta ne data, o newdate uzraso ( www.unical.wu.lt ).
Kitur raso normaliai (pvz http://www.unical.wu.lt/profile.... )

Mano maincore.php kur pakeiciau:


// Format the date & time accordingly
function ltdate($op) {
$rights = array("January" => "Sausio", "February" => "Vasario", "March" => "Kovo",
"April" => "Baland&#382io", "May" => "Gegu&#382es", "June" => "Bir&#382elio", "July" => "Liepos",
"August" => "Rugpju&#269io", "September" => "Rugs&#279jo", "October" => "Spalio",
"November" => "Lapkri&#269io", "December" => "Gruod&#382io");
foreach($rights as $key=>$rightsg) $op = str_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)));
	}
}
 


Gall jums bus taip patogiau:

// Format the date & time accordingly
function ltdate($op) {
$rights = array("January" => "Sausio", "February" => "Vasario", "March" => "Kovo",
"April" => "Baland&#382io", "May" => "Gegu&#382es", "June" => "Bir&#382elio", "July" => "Liepos",
"August" => "Rugpju&#269io", "September" => "Rugs&#279jo", "October" => "Spalio",
"November" => "Lapkri&#269io", "December" => "Gruod&#382io");
foreach($rights as $key=>$rightsg) $op = str_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)));
   }
}




Prasau padeti labai...

Be to as pakeiciau lt raides kodais kad ??? nemestu...

Del visa ko pridedu maincore.php

Redagavo KiraLT· 2010 Spa. 4 14:10:13