Error handling to time parser