From 02183917fcab3de305bbcbc2e45274025ac0d883 Mon Sep 17 00:00:00 2001 From: rendyu <5318486+rendyu@users.noreply.github.com> Date: Mon, 27 Jul 2026 10:14:04 +0800 Subject: [PATCH] Add handling for LastModifiedDate in StlChannel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复标签{Channel.LastModifiedDate}值为空问题 --- src/SSCMS.Core/StlParser/StlElement/StlChannel.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SSCMS.Core/StlParser/StlElement/StlChannel.cs b/src/SSCMS.Core/StlParser/StlElement/StlChannel.cs index b2bef3acb..b24e4ba0c 100644 --- a/src/SSCMS.Core/StlParser/StlElement/StlChannel.cs +++ b/src/SSCMS.Core/StlParser/StlElement/StlChannel.cs @@ -371,6 +371,11 @@ private static async Task ParseAsync(IParseManager parseManager, string inputType = InputType.DateTime; parsedContent = DateUtils.Format(channel.AddDate, format); } + else if (StringUtils.EqualsIgnoreCase(type, nameof(Channel.LastModifiedDate))) + { + inputType = InputType.DateTime; + parsedContent = DateUtils.Format(channel.LastModifiedDate, format); + } else if (StringUtils.EqualsIgnoreCase(type, nameof(Channel.ImageUrl))) { //inputType = InputType.Image;