arqex / react-datetime

A lightweight but complete datetime picker react component.
2k stars 869 forks source link

Date Lable duplicates in Every Year of April(Day-Light Saving) when Timezone is "Africa/Cairo" #864

Open mcsfernando10 opened 1 year ago

mcsfernando10 commented 1 year ago

I'm Submitting a bug in Date value

<Datetime
      id="DueDate"
      name="DueDate"
      ref="dueDate"
      displayTimeZone={'Africa/Cairo'}
      timeFormat={'h:mm A'}
      renderInput={this.renderInput}/>

Version

react-datetime : 3.2.0 moment-timezone : 0.5.43

Steps to Reproduce

Set the displayTimeZone property value to 'Africa/Cairo' Navigate to April month of any year.

Actual Results

Duplicate date label is displayed for Last Friday of April month of any year.

Expected Results

Can't Duplicate date label for Last Friday of April month of any year.

Screen shot of the issue

image