mui/material-ui-pickers

Dates in the calendar are duplicated

Potseluiko opened this issue ยท 1 comments

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior ๐Ÿ˜ฏ

Days in calendar are duplicated (double March 26).
Screenshot 2021-03-26 at 18 02 36

Expected Behavior ๐Ÿค”

No duplicated days.

Steps to Reproduce ๐Ÿ•น

Steps:

  1. import moment from "moment-timezone"
  2. import MomentUtils from "@date-io/moment"
  3. Set default time zone in moment like this:
    moment.tz.setDefault("Asia/Damascus");

I found two time zones to reproduce this bug:
"Asia/Damascus"
"Asia/Gaza"

  1. Live example is here:
    https://codesandbox.io/s/sleepy-yalow-ht57t?file=/src/App.jsx

Your Environment ๐ŸŒŽ

Tech Version
@material-ui/core v4.4.3
@material-ui/pickers v3.3.10
React 16.12.0
Browser Chrome Version 88.0.4324.192 (Official Build) (x86_64)
TypeScript No
@date-io/moment v1.3.11
moment-timezone v0.5.33

@Potseluiko The component was moved to the main repository under the lab, in v5. https://next.material-ui.com/components/date-picker/. If you have a reproduction with this version, please open a new issue in https://github.com/mui-org/material-ui.