Copilot commented on code in PR #11506:
URL: https://github.com/apache/cloudstack/pull/11506#discussion_r2299710154


##########
server/src/main/java/com/cloud/server/StatsCollector.java:
##########
@@ -293,7 +293,9 @@ public String toString() {
 
     private static StatsCollector s_instance = null;
 
-    private static Gson gson = new Gson();
+    private static Gson gson = new GsonBuilder()
+            .setDateFormat("yyyy-MM-dd'T'HH:mm:ssZ")

Review Comment:
   The date format string is duplicated between StatsCollector and GsonHelper. 
Consider extracting this format to a shared constant to ensure consistency and 
ease maintenance.
   ```suggestion
               .setDateFormat(GsonHelper.DATE_FORMAT)
   ```



-- 
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: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to