I think time span is irrelevant here. People change jobs all the time for various reasons, one of the best references I ever had was when I left VW, I was only with them for 4 mths as had to move unexpectedly, but they loved me. If you do a good job, you get a good reference!