Skip to content

Commit

Permalink
💄 优化注册时间样式
Browse files Browse the repository at this point in the history
  • Loading branch information
KomoriDev committed Sep 15, 2024
1 parent c8d7b92 commit 6cc0976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot_plugin_wakatime/render_pic.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async def render(data: WakaTime) -> bytes:

data["user"]["created_at"] = datetime.strptime(
data["user"]["created_at"], "%Y-%m-%dT%H:%M:%SZ"
).strftime("%b %d %Y")
).strftime("%Y-%m-%d")

return await template_to_pic(
template_path=str(TEMPLATES_DIR),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<p class="title">总计编码时间<p class="mx-1 font-noto">⏱</p></p><p class="result">{{ all_time_since_today }}</p>
</div>
<div class="content">
<p class="title">注册时间<p class="mx-1 font-noto">📅</p></p><p class="result">Joined {{ user["created_at"] }}</p>
<p class="title">注册时间<p class="mx-1 font-noto">📅</p></p><p class="result">{{ user["created_at"] }}</p>
</div>
{% if operating_systems %}
<div class="content">
Expand Down

0 comments on commit 6cc0976

Please sign in to comment.