-
-
Notifications
You must be signed in to change notification settings - Fork 969
7.0.7 + Java 25: Fix for WARNING: Use of the three-letter time zone ID ... is deprecated and it will be removed in a future release #15432
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
base: 7.0.x
Are you sure you want to change the base?
Changes from 3 commits
2fcf832
ba0835b
6c3e9b1
5f368fe
66ed763
95dc9c2
e4b640a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -19,10 +19,10 @@ | |||||
| package org.grails.web.converters.marshaller.xml; | ||||||
|
|
||||||
| import java.text.Format; | ||||||
| import java.time.ZoneId; | ||||||
| import java.time.format.DateTimeFormatter; | ||||||
| import java.util.Date; | ||||||
|
|
||||||
| import org.apache.commons.lang3.time.FastDateFormat; | ||||||
|
|
||||||
| import grails.converters.XML; | ||||||
| import org.grails.web.converters.ConverterUtil; | ||||||
| import org.grails.web.converters.exceptions.ConverterException; | ||||||
|
|
@@ -34,21 +34,25 @@ | |||||
| */ | ||||||
| public class DateMarshaller implements ObjectMarshaller<XML> { | ||||||
|
|
||||||
| private final Format formatter; | ||||||
| private static final DateTimeFormatter DEFAULT_FORMATTER = | ||||||
| DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS z") | ||||||
|
||||||
| DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.SSS z") | |
| DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss.S z") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to revert or justify and add documentation for this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any known performance problems with the java.time.DateTimeFormatter vs the FastDateTimeFormatter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DateTimeFormatter is ~15% faster based on the following
https://gist.github.com/akostadinov/670a4dc93485128efb6023f5fa319521
https://martin-grigorov.medium.com/compare-performance-of-javas-simpledateformat-against-datetimeformatter-31be58cadf1d