Changing time stamps to proper form