Changed how getdatetime works