When your farming, harvested items have a spoil timer that persists even if you take it back into your inventory.
Say you harvest some corn and it expires in 5 days. If you take it into your inventory and rez it out 6 days later, it will have expired. The script knows the time and date you harvested it, and uses that to determine the expiration date. The timer doesn't pause when its in your inventory.
If you know how to script you could modify it to not do that, but many people would consider that cheating :)
On the topic of crops dying, if you are not able to attend your farm very often your crops suffer. There is a farmer NPC you can use. It can water, harvest and store items for you. It just wanders around doing the chores, but it does need a little care when setting up. If it cant find a suitable storage container it will just end up with heap of harvested items following it around lol. I think the NPC can even craft items if you configure it properly.
like(0)