Home › Forums › Calendar Products › Events Calendar PRO › Search by Date pulling events from previous day
- This topic has 9 replies, 2 voices, and was last updated 12 years ago by
Barry.
-
AuthorPosts
-
March 7, 2014 at 11:02 am #116242
source
ParticipantSo 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?
March 8, 2014 at 5:52 am #116447Barry
MemberHi!
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!
March 10, 2014 at 10:16 am #116852source
ParticipantYes, 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.
March 11, 2014 at 7:40 am #117309Barry
MemberIt’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?
March 11, 2014 at 8:42 am #117349source
ParticipantThat 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.
March 12, 2014 at 5:50 am #117706Barry
MemberOK, 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?
March 12, 2014 at 7:58 am #117841source
ParticipantI 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.
March 13, 2014 at 9:27 am #118291Barry
MemberThat’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!
March 24, 2014 at 8:43 am #122345source
ParticipantBecause 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.
April 18, 2014 at 6:41 am #136200Barry
Member(… to keep things tidy, as it’s been a while, I am now closing the thread!)
-
AuthorPosts
- The topic ‘Search by Date pulling events from previous day’ is closed to new replies.
