ant-design / ant-design/pro-components
🐛[BUG]ProDescriptions设置valueType:'dateTime'的时候对“2025-06-24T21:45:50.642678+08:00”格式显示“Invalid Date”
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
Prodescription组件中columns:
```
{
title: intl.formatMessage({ id: 'form.items.sentAt' }),
dataIndex: 'sentAt',
key: 'sentAt',
valueType: 'dateTime',
ellipsis: true,
},
```
值:2025-06-24T21:45:50.642678+08:00
显示:Invalid Date
Contributor guide
Research direction
Start at the ProDescriptions component's handling of columns with valueType 'dateTime', using the reported ISO value as the reproduction case. Trace the date parsing and formatting path, then verify that this value renders as a date rather than “Invalid Date”.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100