mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Date translation
This commit is contained in:
parent
6d9c53612d
commit
4929747f70
39 changed files with 74 additions and 55 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue