generate time record only if there were changes