An auction website, when the system time is equal to the beginning of lots of time, items will automatically change state for the purpose; When the system is equal to the end of the auction time, items will automatically change the status to closed, this how to do? Pray god help