weimingdiit commented on PR #7338:
URL: https://github.com/apache/ozone/pull/7338#issuecomment-2443870795

   > Is output of other Ozone commands consistent in how they display time? 
(date/time format, display timezone (UTC vs. local))
   > 
   > * If so, is this change making it consistent with other commands?
   
   
   Yes, I checked other ozone commands, and my output is consistent with the 
format in the ContainerBalancerStatusSubcommand command.
   The code in ContainerBalancerStatusSubcommand is as follows,the local date 
and time without the time zone is output in ContainerBalancerStatusSubcommand
   
   `if (isRunning) {
         LocalDateTime dateTime =
             
LocalDateTime.ofInstant(Instant.ofEpochSecond(balancerStatusInfo.getStartedAt()),
 ZoneId.systemDefault());
         System.out.println("ContainerBalancer is Running.");
   
         if (verbose) {
           System.out.printf("Started at: %s %s%n%n", dateTime.toLocalDate(), 
dateTime.toLocalTime());
           
System.out.println(getConfigurationPrettyString(balancerStatusInfo.getConfiguration()));
         ......
       }
   }
   `
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to