X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/48c710744cbabd2ddc812fc50b6944328461747c..d6aca018eacac076d731db23390343cca129b33b:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index 8a82b2a..4991f23 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -143,7 +143,6 @@ function jirafeau_human_size($octets) // Convert UTC timestamp to a datetime field function jirafeau_get_datetimefield($timestamp) { - $ts = date_create("@" . $timestamp); $content = '' . date_format($ts, 'Y-m-d H:i') . ' (GMT)'; @@ -1287,7 +1286,7 @@ function jirafeau_encrypt_file($fp_src, $fp_dst) $enc = sodium_crypto_secretstream_xchacha20poly1305_push($crypt_state, $to_enc); if (fwrite($w, $enc) === false) { - return ''; + return ''; } }