fix: 修复视频发布时间错误问题Fixes: #103

This commit is contained in:
姚彪
2024-08-05 22:17:28 +08:00
parent 63c7fbf2e1
commit f9eb527c40
2 changed files with 2 additions and 4 deletions

View File

@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
@@ -11,7 +10,6 @@ using DownKyi.Core.BiliApi.Zone;
using DownKyi.Core.FileName;
using DownKyi.Core.Logging;
using DownKyi.Core.Settings;
using DownKyi.Core.Settings.Models;
using DownKyi.Core.Utils;
using DownKyi.Events;
using DownKyi.Models;

View File

@@ -205,7 +205,7 @@ public class VideoInfoService : IInfoService
var timeFormat = SettingsManager.GetInstance().GetFileNamePartTimeFormat();
// 视频发布时间
var startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); // 当地时区
var dateTime = startTime.AddSeconds(_videoView.Pubdate);
var dateTime = startTime.AddSeconds(episode.Arc.Ctime);
page.PublishTime = dateTime.ToString(timeFormat);
// 这里的发布时间有问题,
// 如果是合集,也会执行这里,