>Once Honey is slathered on one of the trees and at least 6 hours have passed, a Pokémon may appear on the tree. If a tree is left unchecked for 24 hours, both the honey and any Pokémon will be gone. -Bulbepedia
So you have to get your honey between 6 hours and 24 hours.
Source