Skip to content

Commit

Permalink
remove timezone when adding record
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetWq committed Sep 9, 2024
1 parent ad65f14 commit 2c2bb51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_memes_api/recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def record_meme_generation(session: Session, meme_key: str):

record = MemeGenerationRecord(
session_persist_id=session_persist_id,
time=datetime.now(timezone.utc),
time=remove_timezone(datetime.now(timezone.utc)),
meme_key=meme_key,
)
async with get_session() as db_session:
Expand Down
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 = "nonebot_plugin_memes_api"
version = "0.4.10"
version = "0.4.11"
description = "Nonebot2 plugin for making memes"
authors = ["meetwq <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 2c2bb51

Please sign in to comment.