In many ways the language of “being in the moment” is useful, because so much of the time we’re unmindfully caught up in thinking about things from the past, or things that might happen in the future. But actually we only have this present moment. Even when you’re thinking about the future or past, you’re focusing on thoughts that are arising right now. You’re always in the present moment.
The problem implicit in what the Buddha says above isn’t actually to do with the past, present, or future, but with how we relate to memories and our thoughts about the future.