Fixing PHP warnings.
Minor - format code.
The session ends the end_date at 23.59.59 see BT#7740