Skip to content

Commit

Permalink
Merge pull request #359 from NekoAria/2.0
Browse files Browse the repository at this point in the history
fix(parsing): typo
  • Loading branch information
Quan666 authored Aug 14, 2022
2 parents 87e8140 + 43cf962 commit 3662808
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ELF_RSS"
version = "2.6.10"
version = "2.6.11"
description = "QQ机器人 RSS订阅 插件,订阅源建议选择 RSSHub"
authors = ["Quan666 <[email protected]>"]
license = "GPL-3.0-only"
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ELF_RSS2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .rss_class import Rss
from .utils import send_message_to_admin

VERSION = "2.6.10"
VERSION = "2.6.11"
__plugin_meta__ = PluginMetadata(
name="ELF_RSS",
description="QQ机器人 RSS订阅 插件,订阅源建议选择 RSSHub",
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/ELF_RSS2/parsing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ async def handle_date(
) -> str:
if date := item.get("published", item.get("updated")):
with suppress(Exception):
data = parsedate_to_datetime(date)
date = arrow.get(data).to("Asia/Shanghai")
date = parsedate_to_datetime(date)
date = arrow.get(date).to("Asia/Shanghai")
else:
date = arrow.now()
return f"日期:{date.format('YYYY年MM月DD日 HH:mm:ss')}"
Expand Down

0 comments on commit 3662808

Please sign in to comment.