fixed date & time insertion bug