Location
(Additional tools may be found elsewhere in the admin settings)
Location settings
An administrator can change the following location settings in Administration > Site administration > Location > Location settings.
Default timezone
This sets the default timezone for date display.
"Server's local time" here will make Moodle default to the server timezone as defined by the “Default timezone” setting in PHP. (When this term appears in the user profile it means something slightly different. See the next setting for more.)
If you want to explicitly set a Timezone in Moodle instead of relying on the server one, be sure to first download and/or update the complete list of timezones from Site administration > Location > Update timezones before setting this. An out-of-the-box new installation of Moodle has only a few UTC time zone settings in this list. If you see only those, first update the list first to give you all the options.
Is it generally recommended that you select a named timezone specific to your region (e.g. America/New_York) instead of a UTC setting if one is available, unless you have a very specific reason not to. Such settings are aware of [local time zone shifts] such as Summer Time or Daylight Savings Time while UTC is not.
Force default timezone
Pull down menu to force the user to be in a specific timezone or allow users to individually select their timezone.
This is off by default because when new users are created they will inherit the system default anyway, but are allowed to change it to another location if the are in another time zone or traveling, for instance.
Note: It is important to understand that setting "Server's local time" in a User profile > Timezone means whatever is set in the Moodle default timezone. So if the Moodle site default timezone is set, for example, to America/Montreal, the user will not see that in their profile, but will see "Server's local time" instead, but it means America/Montreal.
If you do force a timezone for all users, then they will see an explicit timezone instead such as America/Montreal, and will not be able to change it.
Default country
Select the country to appear by default on a new user account page form.
IP address lookup
GeoIP City data file
Location of GeoIP City binary data file. This is a non-invasive way to determine geographical and other information about Internet visitors in real-time. This file is not part of Moodle distribution and must be obtained separately from MaxMind. There is a GeoIPLite version for free.
Google Maps API key
Google Maps for IP address lookup visualization key. The Google Maps API lets you embed Google Maps with JavaScript. This is free.
NOTE: There is no longer support for Google maps API V2 as it has been deprecated since 2010. V3 is now used. See here for details: https://developers.google.com/maps/documentation/javascript/tutorial#api_key
After updating the information in this section, IP's that are displayed as a link, such as in reports, when clicked will open new window with a Google Map indicating the location of the IP, if found and if not a private address.
Update timezones
The update timezones page Site administration > Location > Update timezones provides administrators with the option to update their local database with new information about world timezones.
This is important because of daylight saving changes that many countries use. You should generally use these regional location settings in preference to UTC unless you have a very specific reason to use UTC instead.
If the update is completed with success, Moodle will inform you how many entries were updated and which location was used as a source.
This naming convention on the list of Area/Location is based on the IANA Time Zone standard: see [here for more details].
Typically, there will be one major city or location chosen to represent the time zone. Countries are not used. So you will need to pick the representative city or location for the time zone you wish Moodle to use.
For example, the following are the standard time zones in the continental U.S.:
- America/New_York = Eastern Time
- America/Chicago = Central Time
- America/Denver = Mountain Time
- America/Los_Angeles = Pacific Time
However, if you live in the state of Arizona, which does not observe Daylight Savings Time, you should choose America/Phoenix instead of America/Denver in order to properly observer the time change twice a year. Likewise for other exceptional areas in some states like Indiana, which have local time zone changes.
See also
- Moodle 2 Administration - Location MoodleBites video on YouTube