changed time to datestamp