correcting time atribute