fixed bug with incorrect parsing of start and end time