Posted By

TioSolid on 03/01/11


Tagged

magento


Versions (?)

Get magento locale date/time from GMT timestamp / current time


 / Published in: PHP
 

URL: http://www.swiftcore.com/en/magento/get-magento-locale-datetime-gmt-timestamp.html

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

Report this snippet  

You need to login to post a comment.