While chopped onion is kept in deep freezers for a longer time and then kept at room temperature inside an airtight container it still remains good 
Keep the skin on a full half, seal it, and store it face down in the fridge.     Cooks Illustrated    Other half same thing but no skin. 