How to list upcoming events in a Widget from the Calendar. Problem skipping todays event.

Xephius
Xephius
@xephius
8 years ago
93 posts
I am having some trouble getting an expression to work, and I was hoping for some trouble shooting help. Right now, I can get the _next_ two events to display, but it always skips the event for todays date. I double checked that it was >=

I would like to make sure it displays todays event as well as the next event(s). Thoughts?

{jrCore_list module="jrEvent" search1="event_date >= `$smarty.now`" limit="2"}

updated by @xephius: 01/15/17 03:23:09PM
joanna
@joanna
8 years ago
88 posts
Hi :)
Just a thought - when you use a widget, you can choose how many events you will see.
Or maybe something wrong is with the time on your site.
We had a problem that an event disappeared a bit earlier because of the time zone which we used on our site.
Xephius
Xephius
@xephius
8 years ago
93 posts
Joanna,

Thanks, I checked my timezone, and it appears to be correct. (CST) I am not sure how to set the base time beyond that, but I am still looking around.

On the widget, I think I currently have it set to "limit=2" for testing, but will make it just one when it get it working properly. :)
Strumelia
Strumelia
@strumelia
8 years ago
3,603 posts
Hmm... I wonder if it sees today's event as having 'occurred' already, thus changing it into a 'past' event and it then becomes invisible?


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
michael
@michael
8 years ago
7,714 posts
{$smarty.now} is a timestamp in seconds so you could try greater than yesterday to include todays stuff.

1 day in seconds = 86400

Try:
{jrCore_list module="jrEvent" search1="event_date >= `$smarty.now-86400`" limit="2"}