Skip to content

datePicker range时选了同一天值都是一天的起点 #6917

Closed
@AzronChan

Description

@AzronChan

Describe the bug

如naive官方组件文件demo,https://codesandbox.io/p/sandbox/cmj74x
当datePicker 中类型是range,并且开始时间和结束时间都选了同一天,datePicker返回的值是 [1183135260000,1749783505689]。

期望:
选同一天时,返回的值应该是[当天00:00:00,当天23:59:59]

Steps to reproduce

https://codesandbox.io/p/sandbox/cmj74x

Link to minimal reproduction

https://codesandbox.io/p/sandbox/cmj74x

System Info

windows 10 
chrome 137.0.7151.69
pnpm 8.7.0
node 18.19.0

Used Package Manager

pnpm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions