React-big-calendar: Issues showing past events in calendar

Created on 20 Apr 2018  路  7Comments  路  Source: jquense/react-big-calendar

Hello,

I am facing the issue to show events from google calender into react-big-calendar

I'm not able to get past endtime events. e.g. if I have events with time 5:00pm to 5:30pm and current time is 5:45pm then events are not showing on agenda calender. If I change the event end time 5:30 to 6:00pm then it starts showing.

I need to show all events past and upcoming.

-- Google calender screen-shot http://prntscr.com/j7sygr
-- Event not showing on agenda calender in 18 april http://prntscr.com/j7sz0w
http://prntscr.com/j7tmc2

  <BigCalendar
    style={{height: '450px'}}
    events={this.state.events}
    defaultDate={new Date()}
    defaultView="agenda"

  />

Thanks in advance..!!

bug

Most helpful comment

i got around the problem by sending the date prop as start-of-day. the agenda tries to omit events that have already happened today.
defaultDate={new Date(moment().startOf('day'))}

All 7 comments

I have the same problem, hope we can have an answer as soon as possible

i got around the problem by sending the date prop as start-of-day. the agenda tries to omit events that have already happened today.
defaultDate={new Date(moment().startOf('day'))}

Thank you, I think that fixed the problem.

it just hides the problem - the agenda should hide today's past events and show those past events when navigating back. or maybe it is better to see everything for the current day?

it's probably a math bug, anyone care to submit a PR?

This has a couple solutions already related. Open to a PR if this specific problem is not fixed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nirchernia picture nirchernia  路  3Comments

Hector26 picture Hector26  路  3Comments

crashspringfield picture crashspringfield  路  4Comments

Beyazatli picture Beyazatli  路  3Comments

ZacharyLangley picture ZacharyLangley  路  3Comments