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

log输出的时间好像不对 #19

Closed
mia0x75 opened this issue Dec 5, 2017 · 1 comment
Closed

log输出的时间好像不对 #19

mia0x75 opened this issue Dec 5, 2017 · 1 comment

Comments

@mia0x75
Copy link
Contributor

mia0x75 commented Dec 5, 2017

日志输出时间:

$ tail -f client.log 
2017-12-05 07:48:05 发送心跳包
2017-12-05 07:48:05 心跳包返回值:ok
2017-12-05 07:48:08 发送心跳包
2017-12-05 07:48:08 心跳包返回值:ok
2017-12-05 07:48:11 发送心跳包
2017-12-05 07:48:11 心跳包返回值:ok
2017-12-05 07:48:14 发送心跳包
2017-12-05 07:48:14 心跳包返回值:ok
2017-12-05 07:48:17 发送心跳包
2017-12-05 07:48:17 心跳包返回值:ok
2017-12-05 07:48:20 发送心跳包
2017-12-05 07:48:20 心跳包返回值:ok
2017-12-05 07:48:23 发送心跳包
2017-12-05 07:48:23 心跳包返回值:ok
2017-12-05 07:48:26 发送心跳包
2017-12-05 07:48:26 心跳包返回值:ok
2017-12-05 07:48:29 发送心跳包
2017-12-05 07:48:29 心跳包返回值:ok
^C

系统时间:

$ date
2017年 12月 05日 星期二 15:48:33 CST

好像是格林威治时间。

@mia0x75 mia0x75 changed the title log输出的事件好像不对 log输出的时间好像不对 Dec 5, 2017
@jilieryuyi
Copy link
Owner

增加了一个默认加载本地时区的处理

@mia0x75 mia0x75 closed this as completed Dec 7, 2017
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