Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How get current timezone?

For me to have magento bug in timezone, because some places it uses the timezone selected in administration, and in other areas it The use UTC.

I want to know how to take the timezone that is selected in the administration?

like image 971
Dexxtz Avatar asked Jul 04 '14 17:07

Dexxtz


People also ask

How do I get current time zone in Python?

You can get the current time in a particular timezone by using the datetime module with another module called pytz . You can then check for all available timezones with the snippet below: from datetime import datetime import pytz zones = pytz. all_timezones print(zones) # Output: all timezones of the world.

How do I check my TimeZone on my browser?

Open DevTools in Chrome -> Open the Console drawer. Click on the three-dotted menu -> Click on More tools -> Sensors. From the Sensors tab, set the location according to your preference and define the specific timezone.


1 Answers

Mage::getStoreConfig('general/locale/timezone')
like image 118
Dexxtz Avatar answered Nov 18 '22 19:11

Dexxtz