Return to Snippet

Revision: 42197
at March 1, 2011 04:59 by TioSolid


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

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

Initial Description

                                

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

Initial Tags
magento

Initial Language
PHP