Planned downtime export csv changed. Ticket #2404

This commit is contained in:
Arturo Gonzalez Diaz 2015-07-14 12:31:49 +02:00
parent 595ffe8f5c
commit ca1c6c0bf2
1 changed files with 4 additions and 1 deletions

View File

@ -63,7 +63,10 @@ if (!empty($date_from)) {
}
if (!empty($date_to)) {
$periodically_monthly_w = "type_periodicity = 'monthly' AND (periodically_day_from <= '".date('d', strtotime($date_from))."' AND periodically_time_to >= '".date('d', strtotime($date_to))."')";
$periodically_monthly_w = "type_periodicity = 'monthly'
AND ((periodically_day_from <= '".date('d', strtotime($date_from))."' AND periodically_day_to >= '".date('d', strtotime($date_to))."')
OR (periodically_day_from > periodically_day_to
AND (periodically_day_from <= '".date('d', strtotime($date_from))."' OR periodically_day_to >= '".date('d', strtotime($date_to))."')))";
$periodically_weekly_days = array();
$date_from_aux = strtotime($date_from);