Created
November 5, 2020 12:50
-
-
Save Luxato/1fecaa6eaf7399c0561ae58f11a30013 to your computer and use it in GitHub Desktop.
Magento working with time
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set(Mage::app()->getStore()->getConfig(Mage_Core_Model_Locale::XML_PATH_DEFAULT_TIMEZONE)); | |
$currentShopTime = date('Y-m-d H:i:s'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment