sql date to timestamp, fixes truncation of time