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

通过kube-eventer使用kafka来传递集群事件信息,发现EventTimestamp等时间戳比正常时间早8个小时,这是为什么,使用mysql来存储事件信息不会这样。 #220

Closed
chenyangou opened this issue Feb 17, 2022 · 4 comments

Comments

@chenyangou
Copy link

通过kube-eventer使用kafka来传递集群事件信息,发现EventTimestamp等时间戳比正常时间早8个小时,这是为什么,使用mysql来存储事件信息不会这样。

@ringtail
Copy link
Member

ringtail commented May 7, 2022

能否贴一个截图,我看下

@chenyangou
Copy link
Author

chenyangou commented May 7, 2022 via email

@chenyangou
Copy link
Author

这是将事件存储到mysql中的事件记录截图
image
image
mysql和kafka的配置如下:
image
当使用kafka传输事件时,事件发生时间比正常的要早8个小时
kafka事件传输记录如下:
image
image

@gameover453
Copy link

这里使用了ISO8601时间.TZ中的Z表示+00:00.也就是UTC时间
换算到本地时区时间需要自己额外处理到本地时区的逻辑,也非常容易.

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

3 participants