X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/ea78557b0c3dc4eaaaefc9abbaf8c2e476f64a78..ce571122a5b6866835a9313e599bcad57bc790ff:/lib/functions.php?ds=sidebyside diff --git a/lib/functions.php b/lib/functions.php index bac444b..50ab345 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -120,6 +120,14 @@ function jirafeau_human_size($octets) return round($o, 1) . $u[$p]; } +// Convert UTC timestamp to a datetime field +function jirafeau_get_datetimefield($timestamp) +{ + $content = '' + . strftime('%Y-%m-%d %H:%M', $timestamp) . ' (GMT)'; + return $content; +} + function jirafeau_clean_rm_link($link) { $p = s2p("$link"); @@ -599,8 +607,7 @@ function jirafeau_admin_list($name, $file_hash, $link_hash) echo ''; echo '