diff --git a/src/Service/UWService.php b/src/Service/UWService.php index 9caa77be127850b4494852c4087c4ab2a633698c..cad12c119a1ff37ce6651b04567ae73b4055d881 100644 --- a/src/Service/UWService.php +++ b/src/Service/UWService.php @@ -427,24 +427,26 @@ class UWService implements UWServiceInterface { else { // If the date is upcoming, meaning greater than right now. - if ($date['end_value'] > strtotime("today")) { - - // If this is the same day, get the date and the start - // and end times. - if ($date['duration'] < '1439') { - $start_date = date('l, F j, Y g:i A', $date['value']); - $end_date = date('g:i A', $date['end_value']); - } - - // This is not the day, get the start and end date with time. - else { - $start_date = date('l, F j, Y g:i A', $date['value']); - $end_date = date('l, F j, Y g:i A', $date['end_value']); - } + // Taking this out for now, will be putting it back, if + // we figure out how to do this in the view. + // if ($date['end_value'] > strtotime("today")) { + + // If this is the same day, get the date and the start + // and end times. + if ($date['duration'] < '1439') { + $start_date = date('l, F j, Y g:i A', $date['value']); + $end_date = date('g:i A', $date['end_value']); + } - // Add the start and end date with timezone. - $return_dates[] = $start_date . ' - ' . $end_date . ' ' . date('T', $date['end_value']); + // This is not the day, get the start and end date with time. + else { + $start_date = date('l, F j, Y g:i A', $date['value']); + $end_date = date('l, F j, Y g:i A', $date['end_value']); } + + // Add the start and end date with timezone. + $return_dates[] = $start_date . ' - ' . $end_date . ' ' . date('T', $date['end_value']); + // } } } }