Skip to content

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

@Sunny-liaokai

Description

@Sunny-liaokai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions