gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.
https://daypicker.dev
MIT License
6.09k stars 732 forks source link

I give a specified time and I don't understand why the calendar is not adjusted to the corresponding time #2576

Closed Sunny-liaokai closed 1 week ago

Sunny-liaokai commented 1 week ago

Snipaste_2024-11-08_13-37-03

Code

Please include the code required to reproduce the bug.

import { DayPicker } from "react-day-picker";

export function Start() {
  return (
    <DayPicker  selected={new Date('2021-03-14')}/>
  );
}

Actual Behavior

I give a specified time and I don't understand why the calendar is not adjusted to the corresponding time

Screenshots

image