change time format and add datetime to time tag