• Resolved gonzob

    (@gonzob)


    This is not a bug, it is about understanding what happens.

    The “Number of days after today” is the number of 24-hour periods after the current time. It is a window that moves as the day progresses.

    So, if today is Monday at 9am and you have a 3-day window, then events that start before 9am on Thursday will be shown, but an event that starts at 1pm will not.

    As the day progresses, any of today’s events that are completed before the current time will drop off the top of the list, and events that fall within the window will appear at the bottom.

    It wasn’t what I was expecting – I thought “Thursday” would include all events for Thursday.

    Gonzo

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bramwaas

    (@bramwaas)

    Hi Gonzo ,

    yes it is a moving window. Your example is correct.

    I have to admit that I haven’t thought about this much. This was just a simple implementation. But now that I think about it, I have a question for you.

    What did you expect before the start? All events ending after 9 a.m. Monday, as it works, or all events ending on or after Monday (after 0 a.m. Monday)?

    Regards Bram

    Thread Starter gonzob

    (@gonzob)

    I expected that all events after 0am on Monday and all events until 11:59 on Thursday would be shown.

    I have two uses – one for a band calendar which has a long timespan (weeks), and there are widely spaced events, so the current effect is fine

    The other is for events in a retirement village – it has a span of only 4 days and there are multiple events on each day. Someone asked me why the “4pm Chapel Service” event was not showing on a Wednesday. I was sure I had entered it on the Google calendar, and when I checked, yes it was there. The widget did not show it however, due to the “moving window” effect.

    So, the widget is OK as-is (when you understand what it does), but an improvement would be to show all events for the full day at the window end.

    Gonzo

    Plugin Author bramwaas

    (@bramwaas)

    Thank you for your clear use-cases.

    I keep them in mind as enhancements for one of the coming updates. I think with a setting in advanced so that users can switch back to the old solution.

    Regards Bram

    Plugin Author bramwaas

    (@bramwaas)

    Submitted version 2.3.1.

    In Advanced option ‘Period limits’ you can now choose for whole day, or time of the day for begin and end limit of the moving window.

    This is of cause depending on the local timezone. So I have also provided an option to choose the browsers timezone settings. When you choose ‘Use client timezone settings with REST’ the output is created with a REST call after the window is loaded and then the timezone settings of the browser are used in stead of the wp-installation timezone setting. This affects also the display time of the events.

    Thread Starter gonzob

    (@gonzob)

    Thanks Bram – works well!

    Gonzo

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Number of days is a moving window in time’ is closed to new replies.