Skip to content

Commit

Permalink
fix: 修复时间范围组件移动端结束时间的时间戳不是23:59:59问题 (#11010)
Browse files Browse the repository at this point in the history
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
  • Loading branch information
qkiroc and qkiroc authored Oct 11, 2024
1 parent 366aa93 commit 5402322
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions packages/amis-ui/src/components/CalendarMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 5402322

Please sign in to comment.