mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-21 11:56:09 +00:00
fix: !version时间显示为commit_time
This commit is contained in:
@@ -32,7 +32,7 @@ def get_current_version_info() -> str:
|
|||||||
|
|
||||||
for entry in repo.get_walker():
|
for entry in repo.get_walker():
|
||||||
version_str += "提交编号: "+str(entry.commit.id)[2:9] + "\n"
|
version_str += "提交编号: "+str(entry.commit.id)[2:9] + "\n"
|
||||||
version_str += "时间: "+time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(entry.commit.author_time)) + "\n"
|
version_str += "时间: "+time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(entry.commit.commit_time)) + "\n"
|
||||||
version_str += "说明: "+str(entry.commit.message, encoding="utf-8").strip() + "\n"
|
version_str += "说明: "+str(entry.commit.message, encoding="utf-8").strip() + "\n"
|
||||||
version_str += "提交作者: '" + str(entry.commit.author)[2:-1] + "'"
|
version_str += "提交作者: '" + str(entry.commit.author)[2:-1] + "'"
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user