modified validTime in Event.php in prepreation for testing it