Moodle in the Ethiopian calendar
Moodle has calendar types for Hijri, Persian, Thai and Hebrew dates, but none for Ethiopia. Our free calendartype_ethiopian plugin shows and takes dates in the Ethiopian calendar, Pagume included.
Short answer: Moodle can show dates in other calendars through calendar type plugins, and the plugins directory has them for Hijri, Persian, Thai and Hebrew dates. There is none for Ethiopia’s civil calendar, the one schools and universities in Ethiopia plan their year in. Our free plugin, calendartype_ethiopian, adds it: due dates, the calendar and every date field in Ethiopian dates, so 3 December 2026 reads as 24 Hidar 2019.
This is the thirty-first plugin in our series: one plugin for each Moodle plugin type, each one teaching DevLMS Studio, our AI plugin builder, how that type works.
What it changes
- Dates across Moodle: “Thursday, 24 Hidar 2019, 10:00 AM” on assignments, quizzes, forum posts and reports.
- The calendar’s month view has 13 months. Pagume, the last one, has 5 days, or 6 in the year before a Gregorian leap year.
- Date fields (course start, due dates, quiz open and close) list Ethiopian days, months and years. Moodle still saves the exact moment, so a teacher on the Ethiopian calendar and a colleague on the Gregorian one see the same deadline, each in their own calendar.
- Month names in English (Meskerem to Pagume) and in Amharic (መስከረም to ጳጉሜን) when Moodle is in Amharic.
Choose who gets it: the whole site (Site administration > Appearance > Calendar), one person (Preferences > Calendar preferences), or one course for everyone in it (Course settings > Appearance > Force calendar). It supports Moodle 4.5 LTS to 5.3. The code is on GitHub.
How a Moodle calendar type works
From Moodle 5.3’s calendar code (the same in 4.5):
- Moodle always stores a date as one number, the seconds since 1970. A calendar type never changes what is stored. It only turns that number into a day, month and year for display, and back again when someone picks a date in a form.
- A calendar type is one class with about twenty methods: the month names, how many days each month has, what comes before and after a month, and the two conversions. Moodle asks it for everything, so 13 months work in the month view and the date menus without changes to core.
- Which calendar a page uses is decided in order: the course’s forced calendar, then the person’s choice, then the site default. People keep the calendar they had when their account was made, so changing the site default alone does not move existing users. Our browser tests caught that on the first run.
- Moodle’s date-formatting helper formats in the server’s time zone, not the one you hand it. A test with a 10:00 UTC deadline printed 6:00 PM until we switched the zone around the call, as Moodle’s own Gregorian type does.
The conversion is plain arithmetic. Unit tests compare it with ICU, the date library behind most operating systems and browsers, for every day from 1900 to 2060 in both directions: more than 58,000 days. Browser tests open the month view, step from Nehase into Pagume, save a course start date in Ethiopian and read it back, and check that a teacher on the Gregorian calendar still sees Gregorian dates outside the course.
Need a plugin like this for your own Moodle?
Describe it in DevLMS Studio and watch it built and tested in a real Moodle, or ask our team for a fixed price.
Open DevLMS Studio