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

Open
#864 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript, react
Domain
frontend

Research direction

Start by reproducing the issue with react-datetime 3.2.0 and moment-timezone 0.5.43: set displayTimeZone to Africa/Cairo and navigate to April. Inspect the date labels rendered for the final Friday and how the component handles timezone transitions. Done means each day in April has a single label; the issue does not mention a test or source file to start from.

Written by the indexing model from the issue text.

Description

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

Dominant language
JavaScript
Stars
2k
Forks
858
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from arqex/react-datetime

All issues in arqex/react-datetime

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.