add time format for history