this was way how i was doing this,
<?
list($date,$hours) = split(' ', $row['datetime']);
list($year,$month,$day) = split('-',trim($date));
list($hour,$min,$sec) = split(':',$hours);
echo date(r,mktime($hour, $min, $sec, $month, $day, $year));
?>
but Installer gave shorter code that works as well.
i just needed to improve it a lil' bit cause i dont know why but script produces doublespace in output, and validator gives warning..
<?=str_replace(" ", " ", date('r', strtotime($row['datums'])));?>