Search by Date pulling events from previous day

Home Forums Calendar Products Events Calendar PRO Search by Date pulling events from previous day

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #116242
    source
    Participant

    So for some reason when I try to search events by a specific day, the calendar lists out events from the day before. For example, if I go to list view and search March 13th, it will show me events from March 12th.

    I’ve tried disabling all plugins and switching to twenty eleven, twenty twelve and twenty fourteen themes without any change so I’m not sure what’s wrong. Strangely the Day view pulls the correct events, but the List view doesn’t.

    Any suggestions?

    #116447
    Barry
    Member

    Hi!

    I’m sorry to see you are experiencing difficulties.

    It looks like a few customizations have been made, I wonder if they might be impacting in any way. For the avoidance of doubt, can you confirm that any customizations were made within template overrides etc (as per the Themer’s Guide) rather than by editing core plugin code and that they would not have been in place when you ran through those troubleshooting steps?

    Thanks!

    #116852
    source
    Participant

    Yes, I did all the customization through overrides in a tribe-events folder within my theme and I removed the folder via FTP when troubleshooting. Is this what you mean?

    I’ve also tried deleting and re-installing The Events Calendar without luck, although since the events came right back without being re-entered I’m thinking I didn’t delete it fully.

    #117309
    Barry
    Member

    It’s worth remembering that in the context of list view, an event will continue to be listed until it has been ended.

    So for example if I visit your list view and select March 13, the first event returned is dated March 10 – however that is merely the start date and, on navigating to the single event page, I see it continues until March 15. So it is correct that this continues to be listed.

    Does that clarify things at all?

    #117349
    source
    Participant

    That does make sense, and I’m fine with it listing events that are still running. My problem is that an event than starts and ends on the 19th, for instance, shows up at the top when searching the 20th. Because we have so many events, this usually means that searching the 20th doesn’t pull up any events for the 20th, since the page is full of events from the day before.

    I did have the day end time set to 3am, but I changed it back to midnight and it didn’t seem to affect anything.

    #117706
    Barry
    Member

    OK, so I think you may be facing a quirk of the current all-day event implementation.

    If you create an all day event then, behind the scenes, it is still given start and end times – you just don’t see them – and these times are based partly on the end-of-day cutoff setting. If you subsequently adjust the end of time cutoff setting then that can lead to a strange side effect since the start/end times of any all day events you have already created will not automatically be adjusted.

    It’s possible that’s what is happening here, in which case the best course of action is to ensure the end-of-day cutoff is set to something that’s appropriate in your case and, once that’s don, edit and re-save any existing all day events that are behaving in this manner.

    Does that make sense/help at all?

    #117841
    source
    Participant

    I think I understand what you’re saying. Basically if the end of day is set to 3am and changed to 12am, the all day events already made are still set to end at 3am, essentially pushing them onto the next day? When I imported my events the end of day time was set to 3am, and I didn’t change that to 12am until after I was having a problem with the date search. Do you still think this is the problem?

    Regardless I will try what you’ve suggested and report back. Thank you very much for patiently helping me out.

    #118291
    Barry
    Member

    That’s exactly what I mean and it’s definitely worth investigating.

    As an aside, we do realize this particular method of handling all-day events isn’t ideal – but we have slated it as an area in need of further work so, hopefully, steps like these will not be necessary in future versions (assuming this is indeed the problem).

    Let us know how you get on!

    #122345
    source
    Participant

    Because of the number of events and the way my client wants them handled, I haven’t been able to test it properly on the events already entered, but I did create a series of test All Day events and the problem seems to be resolved. Thank you again for your help.

    #136200
    Barry
    Member

    (… to keep things tidy, as it’s been a while, I am now closing the thread!)

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Search by Date pulling events from previous day’ is closed to new replies.