From 55cae38defd6e31f945dfc2e74ddd2d583b5a949 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 18 Jun 2025 16:42:57 +0500 Subject: upd: use DateTime for timestamp formatting --- public/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public') diff --git a/public/index.php b/public/index.php index 44b97bf..0493cc4 100644 --- a/public/index.php +++ b/public/index.php @@ -99,7 +99,7 @@ if (FILE_CATALOG_FANCY_VIEW && $file_id) { } if (isset($file['duration'])) { - array_push($file['resolution'], format_timestamp($file['duration'])); + array_push($file['resolution'], format_timestamp(new DateTime()->setTimestamp(time() + $file['duration']))); } if (isset($file['line_count'])) { @@ -153,7 +153,7 @@ $privacy_exists = is_file($_SERVER['DOCUMENT_ROOT'] . '/static/PRIVACY.txt');
-

Uploaded ago

+

Uploaded ago

-- cgit v1.2.3