mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复时间范围组件移动端结束时间的时间戳不是23:59:59问题 (#11010)
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
366aa93be1
commit
5402322231
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user