If you are fully vaccinated, then the timing of the official advisory doesn’t apply.  You will be covered if it was before or after your purchase or departure.
If you are not vaccinated, you will be covered for an infectious disease if the advisory was called before you depart.  If you choose to travel while the advisory is in place, you will not be covered for the infectious disease if you are not vaccinated, regardless of your reason.