Change the fromtime and untiltime to be datetime instead of epoch