Fixed bug of datetime parameter not being parsed