using correct timestamp for hour detection, and make sure we always keep the most recent snapshot