Skip to content

Solution: Spring serializes Java's date type date problem#3006

Merged
davidzollo merged 3 commits intoapache:devfrom
BoYiZhang:dev
Jun 20, 2020
Merged

Solution: Spring serializes Java's date type date problem#3006
davidzollo merged 3 commits intoapache:devfrom
BoYiZhang:dev

Conversation

@BoYiZhang
Copy link
Copy Markdown
Contributor

issues : #3001

Solution: Spring serializes Java's date type date problem

Date type date problem in spring serializing Java
Solution: Spring serializes Java's date type date problem
@gabry-lab
Copy link
Copy Markdown
Member

@BoYiZhang I thinks it's already fixed, could you check it again?

@sonarqubecloud
Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

warning The version of Java (1.8.0_252) you have used to run this analysis is deprecated and we will stop accepting it from October 2020. Please update to at least Java 11.
Read more here

Copy link
Copy Markdown
Contributor

@davidzollo davidzollo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@davidzollo davidzollo merged commit 45785db into apache:dev Jun 20, 2020
@davidzollo
Copy link
Copy Markdown
Contributor

@BoYiZhang I thinks it's already fixed, could you check it again?

? I just merged this PR and didn't see what you said, @BoYiZhang , Please check , thx

@BoYiZhang
Copy link
Copy Markdown
Contributor Author

@dailidong

Customer feedback
Get data through API interface :
For time data such as createtime, the returned data is eight hours later than the normal time
Background data is normal, but after spring serialization, the data will no longer show Beijing time
The reason is that data of date type, after being serialized in spring, will be formatted as:
At present, the main users of the dispatching are China users, so the default settings are increased.

Control the data date returned by API interface
image

After modification:

image

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

Successfully merging this pull request may close these issues.

3 participants