File tree Expand file tree Collapse file tree
framework/modules/events/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -492,7 +492,8 @@ function showall() {
492492 default ;
493493 // $items = null;
494494 // $dates = null;
495- $ day = expDateTime::startOfDayTimestamp (time ());
495+ @date_default_timezone_set (DISPLAY_DEFAULT_TIMEZONE );
496+ $ day = expDateTime::startOfDayTimestamp (time ()) - date ('Z ' ); // offset TZ for 'date' entry in DB
496497 $ sort_asc = true ; // For the getEventsForDates call
497498 // $moreevents = false;
498499 switch ($ viewrange ) {
@@ -514,7 +515,7 @@ function showall() {
514515 $ begin = null ;
515516 $ end = $ day ;
516517 break ;
517- case "today " : // events occuring today
518+ case "today " : // events occurring today
518519 $ begin = $ day ;
519520 $ end = expDateTime::endOfDayTimestamp ($ day );
520521 $ dates = $ ed ->find ("all " , $ locsql . " AND (date >= " .$ day . " AND date <= " . $ end . ") " );
You can’t perform that action at this time.
0 commit comments