From 630ab5270d4e096b0fb84d9f3c81237c76108d0e Mon Sep 17 00:00:00 2001 From: filesite Date: Mon, 20 Jan 2025 07:23:58 +0800 Subject: [PATCH] bug fix: change atime to mtime for doc update --- themes/manual/controller/SiteController.php | 2 +- themes/manual/controller/ViewController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/manual/controller/SiteController.php b/themes/manual/controller/SiteController.php index da0f57f..8c80123 100644 --- a/themes/manual/controller/SiteController.php +++ b/themes/manual/controller/SiteController.php @@ -30,7 +30,7 @@ Class SiteController extends Controller { $html = $scanner->fixMDUrls($readmeFile['realpath'], $html); $publishTime = Common::getFileCreateTime($readmeFile); - $updateTime = $readmeFile['fstat']['atime']; + $updateTime = $readmeFile['fstat']['mtime']; if (!empty($readmeFile['author'])) { $author = $readmeFile['author']; } diff --git a/themes/manual/controller/ViewController.php b/themes/manual/controller/ViewController.php index d8603e6..84e9f0c 100644 --- a/themes/manual/controller/ViewController.php +++ b/themes/manual/controller/ViewController.php @@ -36,7 +36,7 @@ Class ViewController extends Controller { $html = $scanner->fixMDUrls($readmeFile['realpath'], $html); $publishTime = Common::getFileCreateTime($readmeFile); - $updateTime = $readmeFile['fstat']['atime']; + $updateTime = $readmeFile['fstat']['mtime']; if (!empty($readmeFile['author'])) { $author = $readmeFile['author']; }