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

登录日志输出日期格式错误,取的月应+1,取的日应该是Date不是Data,望跟进 #501

Open
6 of 9 tasks
SusonJohn opened this issue Aug 26, 2021 · 1 comment

Comments

@SusonJohn
Copy link

1.关于你要提交的问题

Q:是否搜索了issue(包括已关闭的issue)

  • 没有类似的issue

Q:是否阅读了常见问题

  • 已阅读常见问题,未找到相关说明

Q:是否仔细阅读了教程

  • 已仔细阅读教程

2. 使用什么平台?

  • Linux
  • Docker

3. 是否用一键脚本部署的?

  • Yes
  • No

4. 有没有试过用修复脚本来修复过?

  • Yes
  • No

5. 详细叙述

(1) 具体问题

A:登录日志输出日期格式错误,取的月应+1,取的日应该是Date不是Data,望跟进

(2) 详细日志

A:

@hackgsl
Copy link

hackgsl commented Sep 9, 2021

let bakConfFile = '时间为:' + date.getFullYear() + '-' + (date.getMonth()+1) + '-' + date.getDate() + ' ' + date.getHours() + ':' + date.getMinutes() + ':' + date.getSeconds();
秒数也取成毫秒了,建议改为这种格式比较习惯
时间为:2021-9-9 10:21:41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants