Change retriever to use timestamp instead of datetime