fixed event time parsing to handle invalid times