yyqdbngt opened a new pull request, #2093:
URL: https://github.com/apache/rocketmq-dashboard/pull/2093

   ## What is the purpose of the change
   
   Fix #2080.
   
   The K8s certificate page defined a local formatDateTime that rendered 
'NaN-NaN-NaN NaN:NaN:NaN' for null/invalid notAfter, duplicating 
utils/format.ts formatDateTime which already returns a safe value.
   
   ## Brief changelog
   
   - certs.tsx: remove the local formatDateTime and reuse utils/format.ts 
formatDateTime
   
   ## How was this patch verified
   
   - npx vitest run src/pages/cluster/__tests__/K8sCertsPage.test.tsx (7 passed)
   - npx tsc -b clean
   - npx eslint . clean
   


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