Missed out on seeing my girlfriend today because of my passport

My passport expires in February, but I didn't know there was a rule where you needed at least 3 months left on it to fly. So after getting to the airport I was turned away at security.

I'm heartbroken and frustrated with myself.