You can use the time difference between two gaming session (using this plugin by rex rexrainbow) , and depending on the comparison, adjust the objects changed by the time when loading the game.
The player plants crops and he leaves the game.
Crops grow in an hour and need water every 2 hours .
The player returns four hours later.
Loading, you compare and you know that crops are grown and they lack water for an hour.