Persian calendar

Calendars ::: calendartype_jalali
Maintained by Picture of Shamim RezaieShamim Rezaie
This plugin provides Jalali calendar support for Moodle
Latest release:
875 sites
36 fans
Current versions available: 2

The Jalali calendar (also known as the Modern Iranian calendar or the Solar hijri calendar) is a solar calendar which is the official calendar in Iran and Afghanistan.

The calendar type system was introduced in 2.6, so this will not work in any Moodle versions earlier than this.


Screenshot #0
Screenshot #1


Picture of Shamim Rezaie
Shamim Rezaie (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Amin Farajzadeh
    Sat, Dec 9, 2017, 7:06 PM

    When I add a new User profile field of type Date/Time . when I want to pick a date in Edit profile page it automatically changes after save .
  • Picture of Amin Farajzadeh
    Tue, Dec 12, 2017, 1:50 PM
    I found my answer . the profilefield_datetime plugin uses min and max date based on Gregorian calendar . I fixed my problem by convert to Gregorian date before processing date :

    In profilefield_datetime and in field.class.php and in "edit_save_data_preprocess" method I replaced This line :

    $datetime = userdate($datetime, '%Y-%m-%d-%H-%M-%S');


    $datetime = date('Y-m-d-H-m-s', $datetime);
  • Picture of Moien Abadi
    Sun, Dec 31, 2017, 5:37 PM
    I suggest to solve this issue as Amin reported (problem in profilefield datetime for PersianCalendar) in new version of Moodle.
  • Picture of Payman Zafar
    Mon, Jun 18, 2018, 4:33 PM
    I installed this calendar on Moodle 3.5 recently. Today I started using Moodle and I tried to enroll some students in a class with enrollment start and end times. After I saved the times, I found that they are reset to 1 Farvardin 1278.
    To solve the problem, I changed my calendar preference to Georgian, and revised the dates. It was correct.
    Again I changed the calendar to Persian. The enrollment dates were correct. I clicked on the save button without any changes. The dates again reset to 1 Farvardin 1278.
    Please help.
  • Picture of Shamim Rezaie
    Mon, Jun 18, 2018, 4:41 PM
    Thank you, Payman for your interest in the plugin. Please file a ticket at
  • Picture of AVECEN Co
    Sat, Dec 29, 2018, 5:18 PM
    Hi, may I ask when the plugin will be updated for moodle 3.6?
  • Picture of mahsa kmehr
    Tue, May 21, 2019, 5:15 PM
    Hi, this plugin does not work for moodle 3.6.2. How can I have a persian calendar for moodle 3.6.2?
  • Picture of Amir Fouladvand
    Fri, Mar 20, 2020, 3:38 AM
    Hi there
    It is not working with version 3.8 STABLE of IOMAD, Im not sure about original moodle v 3.8 but I think there may be same behavior.
    after install, Persian option appears on Appearance ---> Calendar, but after changing option to Persian, calendar , over the system, dates are still Gregorian.
  • Picture of am laskoo
    Sat, Apr 11, 2020, 1:01 PM
    سلام. یه مشکلی در این پلاگین به وجود اومده اگر میشه برطرفش کنید خیلی متشکرم.
    وقتی وارد دیباگینگ مد مودل میشم این ارور رو چندین بار لیست میکنه ممنون میشم ببینید مشکل از کجاست:
    Warning: A non-numeric value encountered in /var/www/html/moodle/calendar/type/jalali/classes/structure.php on line 356
  • Picture of Misha kari
    Wed, Apr 15, 2020, 6:19 PM
    Hi, install this calendar on moodle3.8.2, how can I replace Gregorian calender with Jalali?
  • Picture of Amin Khoramian
    Thu, May 14, 2020, 9:36 PM
    Hi everyone
    It seems that it doesn't work for 3.8 version! Is it right?
  • Picture of hadi shahbazi
    Thu, Jul 23, 2020, 11:13 PM
    سلام و ادب
    تقویم با مودل های 3.8 و 3.9 مشکل داره
    و اعداد تاریخ ها به هم میریزه
    یه بررسی می کنید
    تو فروم طرح کردم
  • Picture of محمد جعفرزاده
    Mon, Aug 31, 2020, 2:59 PM
    I have a problem
    my vesion of moodle 3.9
    We encounter this error when the BigBlueBottun Activity is running
    Warning: A non-numeric value encountered in /var/www/html/moodle/calendar/type/jalali/classes/structure.php on line 356

  • Picture of Okhtay Gh
    Sun, Sep 27, 2020, 7:32 AM
    any news with Line 356 ?
  • Picture of Shamim Rezaie
    Thu, Oct 15, 2020, 8:43 PM
    Use the latest version from GitHub
1 2 3
Please login to post comments