Note: This documentation is for Moodle 2.7. For up-to-date documentation see Location.

Location

From MoodleDocs

(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. Also, cronjobs that depend on a time of day to run will use this timezone.

"Server's local time" here will make Moodle default to the server timezone as defined by the “Default timezone” setting in PHP.

Is it recommended that you select a named timezone specific to your region (e.g. America/New_York). A complete list of timezones from which you can select your region is available for download via Administration > Location > Update timezones.

Force default timezone

Pull down menu to force the user to be in a specific timezone or allow users to individually select their timezone.

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 Administration > 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.

If the update is completed with success, Moodle will inform you how many entries were updated and which location was used as a source.

See also