Why am I getting an alert for a violation that happened a few months ago?

If you run a scheduled scan, it might show the results of historic violations that happened before the scan was performed. This is why you might get an alert for violation that occurred in the past.