Changed time dependency to datetime for better formatting