It is impossible for the blocks to deviate from the time by more than 2 hours. Nodes will reject any blocks that:
- Have a lower timestamp than the median of the previous 11 blocks
- Deviate from the network adjusted time (Average time given by the nodes connected) by 2 hours.
Okay thanks. But if the network time is the average time of connected nodes, couldn't a miner simply give a wrong time in order to push up the average?