X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/d476bcd5e359b590b36e7372833e0e6ebd419587..e9b6d76a51c3fb14ce5a88ecc1198887270b7622:/lib/functions.php?ds=inline
diff --git a/lib/functions.php b/lib/functions.php
index cf89593..d6f7cb0 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -143,8 +143,11 @@ function jirafeau_human_size($octets)
// Convert UTC timestamp to a datetime field
function jirafeau_get_datetimefield($timestamp)
{
- $content = ''
- . strftime('%Y-%m-%d %H:%M', $timestamp) . ' (GMT)';
+
+ $ts = date_create("@" . $timestamp);
+ $content = ''
+ . date_format($ts, 'Y-m-d H:i') . ' (GMT)';
+
return $content;
}