A man who claims he had two pints to clear his head and ended up being arrested has been sentenced for drink driving.