Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(calendar): compute cell positions missing end date #2457

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

philstainer
Copy link

@philstainer philstainer commented Oct 31, 2023

The issue this fixes is that timeDays end date is exclusive, and the locale was also effecting the result

Often the end date was missing, but in some locations (Germany) it was included but missing in the UK for example

I'm using timeDay to reset the hours and applying an offset on the end date so that is always included

fixes #2333

@vercel
Copy link

vercel bot commented Oct 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nivo ❌ Failed (Inspect) Oct 31, 2023 10:18am

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0dc1300:

Sandbox Source
nivo Configuration
@nivo/calendar TimeRange off by one bug Issue #2333
@nivo/calendar TimeRange off by one bug Issue #2333

Copy link

stale bot commented Mar 13, 2024

This pull request has been automatically marked as stale. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.

@stale stale bot added the stale label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TimeRange omits last data value
1 participant