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

mysql,datetime字段同步到ES的date字段,会变成加8时区的格式 #402

Open
Mingzhongzhao opened this issue Dec 2, 2022 · 1 comment

Comments

@Mingzhongzhao
Copy link

MySQL中,datetime,2022-10-18 23:59:59
进入es后:2022-10-18T23:59:59+08:00

想让他原样进入es请问怎么设置或如何修改源码
感谢指点

@Mingzhongzhao
Copy link
Author

es中该字段的mapping
"type": "date",
"ignore_malformed": true,
"format": "yyyy-MM-dd HH:mm:ss"

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

1 participant