Added `convertDateToTime` function to Poll schema