Minor - fixing PHP warning.
Adding 23:59:59 as  end_date limit see BT#7740