Changed one-off instances of DateTime to a time() function call