Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]详细统计折线图里的时间和我的显示时间对不上 #460

Closed
1 of 2 tasks
Light0913 opened this issue Feb 10, 2025 · 5 comments
Closed
1 of 2 tasks
Labels
bug Something isn't working

Comments

@Light0913
Copy link

发生了什么

统计里显示的是下午两点多,但我的现实时间为晚上11点。

请问我该怎么更正

如何复现?

统计里显示的是下午两点多,但我的现实时间为晚上11点。

AstrBot 版本与部署方式

v3.4.24

Windows

操作系统

Windows

额外信息

你愿意提交 PR 吗?

  • 是的,我愿意提交 PR!

Code of Conduct

@Light0913 Light0913 added the bug Something isn't working label Feb 10, 2025
@MrPeterJin
Copy link

应该是不知道哪里弄错了显示成了 UTC 时间(差8个小时)

@Light0913
Copy link
Author

应该是不知道哪里弄错了显示成了 UTC 时间(差8个小时)

@MrPeterJin 请问我该怎么更正,我实在是找不到更正的方法。谢谢啦

@MrPeterJin
Copy link

MrPeterJin commented Feb 11, 2025

应该是不知道哪里弄错了显示成了 UTC 时间(差8个小时)

@MrPeterJin 请问我该怎么更正,我实在是找不到更正的方法。谢谢啦

我只是在猜测问题,没怎么仔细看代码 😢

Update: 观察到返回的是 unix 时间,可能需要类似 time.asctime(time.localtime(time.time())) 处理一下

@Soulter
Copy link
Owner

Soulter commented Feb 13, 2025

这是前端图表显示导致的问题,下个版本将修复!

@Soulter
Copy link
Owner

Soulter commented Feb 14, 2025

已经修复

@Soulter Soulter closed this as completed Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants