You theoretically have a year before you even have to apply- but patents are expressly "first to file."
Public use of an idea still prevents someone else from patenting it.
Sounds like You're conflating sale of a product prior to filing with "prior art"