Something has to have changed somewhere. As per the wiki:
So on a server that runs 24/7 you'd need to logon to trim your food every few hours with vanilla decay rates.The tracking of decay is based off of the calendar date and time, so skipping time forwards through the use of a bed or commands will result in the food decaying the same amount as if that time frame had passed normally.