ant-design / ant-design/pro-components

🐛[BUG]ProDescriptions设置valueType:'dateTime'的时候对“2025-06-24T21:45:50.642678+08:00”格式显示“Invalid Date”

Open
#9,141 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.