- corrected timestamp logic