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(
{
endDate: newValue
.clone()
.endOf(precision)
.set({
hour: dateTime[0],
minute: dateTime[1],
second: dateTime[2] || 0
})
endDate: newValue.clone().endOf(precision)
// .set({
// hour: dateTime[0],
// minute: dateTime[1],
// second: dateTime[2] || 0
// })
},
() => {
onChange &&