Fixed the method to parse time for fetching events