codeconsole commented on code in PR #15432:
URL: https://github.com/apache/grails-core/pull/15432#discussion_r3171841580


##########
grails-converters/src/main/groovy/org/grails/web/converters/marshaller/xml/DateMarshaller.java:
##########
@@ -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")
+                    .withZone(ZoneId.systemDefault());
+
+    private final Format legacyFormatter;
 
     /**
      * Constructor with a custom formatter.
      * @param formatter  the formatter
      */
     public DateMarshaller(Format formatter) {
-        this.formatter = formatter;
+        this.legacyFormatter = formatter;
     }
 
     /**
      * Default constructor.
      */
     public DateMarshaller() {
-        this(FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss.S z"));
+        this.legacyFormatter = null;

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to