jxxghp / MoviePilot-Plugins

MoviePilot官方插件市场
GNU General Public License v3.0
151 stars 219 forks source link

fix:修复时区问题导致的上次同步后8h内的种子不同步的问题 #452

Closed doubly-yi closed 3 weeks ago

doubly-yi commented 3 weeks ago

time.gmtime(timestamp)获取的是UTC时间,转为字符串后为时区0的时间 后面代码中与DB中的last_sync_time字符串(带有时区)比较if last_sync_time > str(torrent_date): 导致上次同步后8h内,下载器新增的种子都无法满足条件 改为time.localtime(timestamp)获取当地时间进行比较