Skip to content

Instantly share code, notes, and snippets.

@oreales
Created July 28, 2014 16:07
Show Gist options
  • Save oreales/41b8860ca42edb93466f to your computer and use it in GitHub Desktop.
Save oreales/41b8860ca42edb93466f to your computer and use it in GitHub Desktop.
Magent date with gmtoffset correcto
#Magento guarda la fecha y hora en que se produce un pedido (o cualquier cambio en otra entidad)
#en hora universal. Luego a la hora de mostrar la hora localmente, tenemos que asegurarnos que usamos esta llamada:
Mage::getSingleton('core/date')->date(null, $order->getCreatedAt());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment