fix: 修复时间范围组件移动端结束时间的时间戳不是23:59:59问题 (#11010)

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2024-10-11 14:08:04 +08:00 committed by GitHub
parent 366aa93be1
commit 5402322231
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -533,14 +533,12 @@ export class CalendarMobile extends React.Component<
) { ) {
return this.setState( return this.setState(
{ {
endDate: newValue endDate: newValue.clone().endOf(precision)
.clone() // .set({
.endOf(precision) // hour: dateTime[0],
.set({ // minute: dateTime[1],
hour: dateTime[0], // second: dateTime[2] || 0
minute: dateTime[1], // })
second: dateTime[2] || 0
})
}, },
() => { () => {
onChange && onChange &&