Skip to content
Snippets Groups Projects
Commit 2728ab76 authored by Eric Bremner's avatar Eric Bremner Committed by Eric Bremner
Browse files

ISTWCMS-4704: pulling back filtering out dates until we figure out how to do this in the view

parent 9f86b54d
No related branches found
No related tags found
1 merge request!112Feature/istwcms 4704 m26lebla ebremner content types
...@@ -427,24 +427,26 @@ class UWService implements UWServiceInterface { ...@@ -427,24 +427,26 @@ class UWService implements UWServiceInterface {
else { else {
// If the date is upcoming, meaning greater than right now. // If the date is upcoming, meaning greater than right now.
if ($date['end_value'] > strtotime("today")) { // Taking this out for now, will be putting it back, if
// we figure out how to do this in the view.
// If this is the same day, get the date and the start // if ($date['end_value'] > strtotime("today")) {
// and end times.
if ($date['duration'] < '1439') { // If this is the same day, get the date and the start
$start_date = date('l, F j, Y g:i A', $date['value']); // and end times.
$end_date = date('g:i A', $date['end_value']); 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']);
}
// Add the start and end date with timezone. // This is not the day, get the start and end date with time.
$return_dates[] = $start_date . ' - ' . $end_date . ' ' . date('T', $date['end_value']); 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']);
// }
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment