changing history time format