Get Magento Current Time


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. date("Y-m-d H:i:s", Mage::getModel('core/date')->timestamp(time()));

URL: http://phpbugs.wordpress.com/2009/12/22/magento-get-the-current-date-and-time-according-to-the-timezone/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.