End of day hour
-
Hello,
I have a lot of events finishing after midnight (often at 2am) and I dont wan’t to show the next day of event view
I edited the function output_date
function output_dates( $date_format = false, $date_separator = false, $use_site_timezone = false ){
if( empty($date_format) ) $date_format = ( get_option('dbem_date_format') ) ? get_option('dbem_date_format'):get_option('date_format');
if( empty($date_separator) ) $date_separator = get_option('dbem_dates_separator');
+ $timeend = strtotime($this->event_end_date . " " . $this->event_end_time);
+ $realendday = date("Y-m-d", $timeend - 3600 * 4); // Cutoff at 4am
- if( $this->event_start_date != $this->event_end_date){
+ if( $this->event_start_date != $realendday){I think that a end of day cutoff setting like this would be an improvement to this plugin
Regards
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.