Magento get current date time
You Can get Current date and time (according to timezone) in magento as following
Mage::getModel('core/date')->date('Y-m-d H:i:s');
Or You Can use following method
date("Y-m-d H:i:s", Mage::getModel('core/date')->timestamp(time()));