Coder Social home page Coder Social logo

Comments (7)

adamcharnock avatar adamcharnock commented on September 13, 2024

I'm also encountering this too (seen in versions 0.9.7 & 0.9.8). Any suggestions very welcome :-)

from react-big-calendar.

adamcharnock avatar adamcharnock commented on September 13, 2024

Changing this line to the following seems to (kind of) solve the problem:

let slots = dates.diff(first, last, 'day') + 1; // The '+ 1' is new

This is pretty hacky and I'm quite sure it isn't the correct solution. I suspect it is more to do with how the last day of the week is being specified, or something in that vague region.

from react-big-calendar.

antoinerousseau avatar antoinerousseau commented on September 13, 2024

I'm having the same issue when the specified culture's week ends on a Sunday rather than a Saturday.

E.g. with culture="fr":

capture d ecran 2016-04-02 15 16 35

And with culture="en":

capture d ecran 2016-04-02 15 16 21

Using v0.9.8

from react-big-calendar.

antoinerousseau avatar antoinerousseau commented on September 13, 2024

Actually the bug is visible on the demo pages!
http://intljusticemission.github.io/react-big-calendar/examples/index.html

from react-big-calendar.

antoinerousseau avatar antoinerousseau commented on September 13, 2024

Looks like this is trying to resolve a similar bug: SlavaKvak@a359db3

from react-big-calendar.

okcompute avatar okcompute commented on September 13, 2024

Hi all,

Thank you very much for taking the time to fix this issue. It is really appreciated. I confirm the bug is fixed in the month view. But, for me, it still present in the week view:

week
week2

I'm using version 0.9.11

from react-big-calendar.

okcompute avatar okcompute commented on September 13, 2024

And now with the fix:

week_fix
week2_fix

from react-big-calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.