diff --git a/print/templates/email/osticket-report/sql/dateRange.sql b/print/templates/email/osticket-report/sql/dateRange.sql index 5307a7567..47e9d2f8a 100644 --- a/print/templates/email/osticket-report/sql/dateRange.sql +++ b/print/templates/email/osticket-report/sql/dateRange.sql @@ -3,6 +3,6 @@ FROM ( SELECT @lastWeek := DATE_ADD(CURDATE(), INTERVAL -1 WEEK), @lastWeekMonday := DATE_ADD(@lastWeek, INTERVAL (-WEEKDAY(@lastWeek)) DAY), @lastWeekFriday := DATE_ADD(@lastWeekMonday, INTERVAL (+6) DAY), - @lastWeekMondayTime := ADDTIME(DATE(@lastWeekMonday), '00:00:00'), - @lastWeekFridayTime := ADDTIME(DATE(@lastWeekFriday), '23:59:59') + @lastWeekMondayTime := CONCAT(@lastWeekMonday, ' 00:00:00'), + @lastWeekFridayTime := CONCAT(@lastWeekFriday, ' 23:59:59') ) t \ No newline at end of file