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

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

Copy this code and paste it in your 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


RSS Icon Subscribe to comments

You need to login to post a comment.