Replace time with datetime.

All timestamps in database should now be formatted identically.