Magento date() Wrong + Solution

If you are finding that your calls to date() etc are displaying the wrong time then this is the solution for you.

Magento sets the internal time reference to UTC which does not account for daylight saving time adjustments.

To get the correct date for your store, you need to get the store time, so the correct method is like this:

echo date('l, F j, Y, H:i:s', Mage::app()->getLocale()->storeTimeStamp()); 

Tags: magentodatebsttimegmtutc