Date translation

This commit is contained in:
Serghey Rodin 2015-06-03 17:41:43 +03:00
commit 4929747f70
39 changed files with 74 additions and 55 deletions

View file

@ -134,6 +134,11 @@ function top_panel($user, $TAB) {
}
}
function translate_date($date){
$date = strtotime($date);
return strftime("%d  ", $date).__(strftime("%b", $date)).strftime("  %Y", $date);
}
function humanize_time($usage) {
if ( $usage > 60 ) {
$usage = $usage / 60;