fix to correctly record time/date of event