Get correct date and time in Magento

June 3, 2013 17:38

How to get the correct date and time in Magento with timezone? Here you are:

date("Y-m-d H:i:s", Mage::getModel('core/date')->timestamp(time()));

That is.

Share

One Response to “Get correct date and time in Magento”

  1. can we just update mage.php to use our local time instead of UTC?