I am aware that miner can have influence on block.timestamp
My question is, how to avoid this warning?
I don't think there's currently a way to do this. (Either in Remix or in the Solidity code directly.)
The following open issues are relevant. You might want to follow them on GitHub directly: