Why doesn my Moodle site display the time and date correctly?
Each language requires a specific language code (called a locale code) to allow dates to be displayed correctly. The language packs contain default standard codes, but sometimes these don’t work on Windows servers. You can find the correct locale codes for Windows on these two pages: Language codes and Country/region codes (e.g. “esp_esp” for spanish) These new locale codes can be entered on the Administration >> Configuration >> Variables page, where they override the ones in the currently chosen language pack.