error in parsing date and time leads to wrong value being inserted into the table