• Resolved muranyia

    (@muranyia)


    End of day cutoff set to the morning (7:30), yet events that ended before show up in next day’s [event_embed].
    So, for example, an event from the 20th with an end time of 1:00AM (the 21st) still shows up in the list on the afternoon of the 21th.

    The embed code is the following (yes, it has custom fields thru functions.php):

    [event_embed from=”‘.date(“Y-m-d”).'” to=”‘.date(“Y-m-d”, strtotime(“+1 week”)).'” nothing_found_text=”Jelenleg nincsenek közelgő események.” cache=”5″ limit=”10″]<div class=”eventrocket embedded-event post”> <h2>{title}</h2> <div class=”schedule”>{schedule}</div> <div class=”summary”>{advanced_excerpt}</div> <div class=”entry-meta”>{venue} ({city}) | {cost} </div> </div>[/event_embed]

    It shows up here: http://szolnokzene.hu/ (left column)

    You can check the local (server) time here by the function date(‘Y-m-d H:i’):
    http://szolnokzene.hu/test_.php

    https://wordpress.org/plugins/event-rocket/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Barry

    (@barryhughes-1)

    Hi – great question!

    I’d recommend being more explicit with your start/end times here, ie provide a time and not just a date (something like Y-m-d 07:30 might work for you).

    Though I definitely appreciate why you might expect it to automatically respect the end of day cutoff setting, I’m not sure I actually want the embedded event system to make assumptions like this when date/time parameters are set.

    Thread Starter muranyia

    (@muranyia)

    Hello and Thanks for the reply.
    I’m not familiar with the inner workings of the plugin, however, does it make sense to say that completely regardless of the end of day cutoff, events that are over shall not be displayed (say, an event that has ended at 1AM shouldn’t show up at 4PM) any more?

    Plugin Author Barry

    (@barryhughes-1)

    Well, I’d think that all depends on the value of the from parameter. If you set it to from="now" then yes – anything that ended before the current time normally ought to be excluded.

    Plugin Author Barry

    (@barryhughes-1)

    …To provide a little insight, internally strtotime() is used – so various terms like now, today, tomorrow, next (something) and so on are supported.

    Thread Starter muranyia

    (@muranyia)

    Great, thank you, it seems to work with from="now".
    I guess this info would be a good addition to the wiki.

    Plugin Author Barry

    (@barryhughes-1)

    Great point – I added some notes on this 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘End of day cutoff set, yet finished events show up in next day's [event_embed]’ is closed to new replies.