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

time zone #18

Open
maningphp opened this issue Jul 15, 2022 · 2 comments
Open

time zone #18

maningphp opened this issue Jul 15, 2022 · 2 comments

Comments

@maningphp
Copy link

怎么设置时区啊,转的时间是错的。。
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
这个无效啊

@duanxinyuan
Copy link
Owner

可以这样设置:objectMapper.setTimeZone(TimeZone.getDefault())

@duanxinyuan
Copy link
Owner

你复制的这个配置是spring的吧,只能对spring中用来output的ObjectMapper生效

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