I am trying to store the timestamp in the blockchain using block.timestamp
or now
. But that keeps throwing warning as
Use of "block.timestamp": "block.timestamp" can be influenced by miners to a certain degree. That means that a miner can "choose" the block.timestamp, to a certain degree, to change the outcome of a transaction in the mined block.
What is the proper way to store timestamps? Is it good practice?