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

   ## Summary
   - Guard `dateTime()` in the studio user management page: unparseable values 
now render as the standard `'-'` placeholder instead of `Invalid Date`
   - Export the helper for unit testing (same precedent as `formatTime` in 
`LiteTopic.tsx`)
   - Add regression tests covering missing, unparseable, and parseable values
   
   ## Why
   Backend timestamps (`passwordChangedAt`, `gmtCreate`, `gmtModified`) can 
arrive unparseable (e.g. empty-after-trim variants or malformed strings from 
legacy rows). `new Date(value).toLocaleString()` then rendered the literal text 
`Invalid Date` in the user table and in the CSV export, leaking a raw locale 
artifact into the UI.
   
   ## Testing
   - `./node_modules/.bin/vitest run 
src/pages/studio/__tests__/UserManagement.test.tsx` → 7 passed
   - `./node_modules/.bin/tsc --noEmit` → clean
   - `./node_modules/.bin/eslint src/pages/studio/UserManagement.tsx 
src/pages/studio/__tests__/UserManagement.test.tsx` → 0 errors
   


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