123123213weqw opened a new pull request, #5239: URL: https://github.com/apache/rocketmq-dashboard/pull/5239
### Which Issue(s) This PR Fixes Fixes #5227 ### Brief Description X.509 validity is an absolute instant, but `K8sCertService` converted it through `ZoneId.systemDefault()` and the console parsed the offset-less value in the browser zone, so the displayed expiry carried the server-minus-viewer offset. The parsed instants are now expressed in UTC (the #4949 convention for offset-less timestamps), the service's default clock runs on UTC so the expiry-status comparisons speak the same wall clock as the stored values, and the console column renders through `formatUtcDateTime`. ### How Did You Test This Change - `mvn -B -ntp test -Dtest='K8sCertServiceTest,K8sCertControllerTest,K8sCertificateSecretRedactionTest'` — 35/35 green. - The new `createCertShouldStoreSuppliedValidityAsUtc` pins the conversion against a fixed self-signed certificate; verified red under `TZ=Asia/Shanghai` with the unfixed conversion, green after. - `npx vitest run src/pages/cluster/__tests__/K8sCertsPage.test.tsx` — 10/10 green. -- 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]
