change event time to string