From 5cfe84e4f9de41bdc467b57d2b4ba2b85b7ab9d0 Mon Sep 17 00:00:00 2001 From: filesite Date: Sun, 29 Sep 2024 14:37:40 +0800 Subject: [PATCH] create time improve --- themes/tajian/views/my/favs.php | 2 +- themes/tajian/views/site/index.php | 3 +-- themes/tajian/views/site/myindex.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/themes/tajian/views/my/favs.php b/themes/tajian/views/my/favs.php index d253b77..a3544f0 100644 --- a/themes/tajian/views/my/favs.php +++ b/themes/tajian/views/my/favs.php @@ -81,7 +81,7 @@ eof; $platform = Html::getShareVideosPlatform($file['shortcut']['url']); - $pubDate = date('m/d', $file['fstat']['ctime']); + $pubDate = date('m/d', min($file['fstat']['mtime'], $file['fstat']['ctime'])); $imgSrc = $index < 4 ? " src=\"{$snapshot}\"" : ''; $imgAlt = $index < 4 ? " alt=\"{$title}\"" : ''; diff --git a/themes/tajian/views/site/index.php b/themes/tajian/views/site/index.php index e21df94..3dd3021 100644 --- a/themes/tajian/views/site/index.php +++ b/themes/tajian/views/site/index.php @@ -60,8 +60,7 @@ eof; $title = !empty($file['title']) ? Html::mb_substr($file['title'], 0, 33, 'utf-8') : $file['filename']; $platform = Html::getShareVideosPlatform($file['shortcut']['url']); - - $pubDate = date('m/d', $file['fstat']['ctime']); + $pubDate = date('m/d', min($file['fstat']['mtime'], $file['fstat']['ctime'])); $imgSrc = $index < 4 ? " src=\"{$snapshot}\"" : ''; $imgAlt = $index < 4 ? " alt=\"{$title}\"" : ''; diff --git a/themes/tajian/views/site/myindex.php b/themes/tajian/views/site/myindex.php index a9b4d80..a9a3dbf 100644 --- a/themes/tajian/views/site/myindex.php +++ b/themes/tajian/views/site/myindex.php @@ -75,7 +75,7 @@ eof; $platform = Html::getShareVideosPlatform($file['shortcut']['url']); - $pubDate = date('m/d', $file['fstat']['ctime']); + $pubDate = date('m/d', min($file['fstat']['mtime'], $file['fstat']['ctime'])); $imgSrc = $tagIndex == 0 && $index < 4 ? " src=\"{$snapshot}\"" : ''; $imgAlt = $tagIndex == 0 && $index < 4 ? " alt=\"{$title}\"" : '';