X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/4ce96e7519f384ccd7e232db2802aa704636a560..c32806657b3b9e1548d5cf6c84a9d1f96dea0617:/lib/functions.php?ds=sidebyside
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;
}