Calendars: Persian calendar

calendartype_jalali
Maintained by Picture of Shamim Rezaie Shamim Rezaie
This plugin provides Jalali calendar support for Moodle
139 sites
222 downloads
13 fans

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.

Screenshots

Screenshot #0
Screenshot #1

Contributors

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 Rouhollah Mazarei
    Thu, 6 Aug 2015, 5:25 PM
    Thank you very much, it works on my moodle (2.9).
  • Picture of ariyan ariyan
    Mon, 14 Sep 2015, 2:00 PM
    Hi Mr Rezaie
    I'm using this calendar system on two versions of moodle (one 2.5.1+ using the old patch you released & one 2.9 with new plugin)
    I need all of moodle use the Jalali system but for one of my own written local plugins I need the Gregorian date but when the plugin is active both "date_selector" element and "userdate" function use the jalali system & I can't mak ethem to produce Gregorian date;
    How can I produce Gregorian date with "date_selector" element and "userdate" function when the Jalali calendar is active?
    Thanks
  • Picture of maryam norouzi
    Tue, 26 Apr 2016, 4:19 PM
    Hi dear friends
    I have installed jalali plugin and selected jalali in my site in site administrator/appearance/calendar/calendar type . but calendar of my site is still gregorian.
    what should i do to fix it?
  • Picture of maryam norouzi
    Tue, 26 Apr 2016, 5:40 PM
    Hello again
    I understood how to fix it but now I have another problem. When nobody has logged in to my site, every thing is english. I mean calendar is jalali but month's name and all menus are english. Once any body logs in, every thing turn to persian. What's the problem?

    Regards
  • Picture of maryam norouzi
    Tue, 26 Apr 2016, 5:44 PM
    I fixed it my friends, LOL
  • Picture of ali azar
    Sun, 11 Dec 2016, 5:59 PM
    I have same problem mrs maryam norouzi. plz guide me
  • Picture of Shamim Rezaie
    Sun, 11 Dec 2016, 9:13 PM
    Hi Ali,

    You need to "change" the calendar you want to use to the Persian calendar.
    You can change your site's default calendar in "Site administration ► Appearance ► Calendar"
    Also, site users can change it for themselves by editing their profile (Moodle 3.1 and below) or by going to their preferences page (Moodel 3.2)
  • Picture of maryam norouzi
    Mon, 12 Dec 2016, 12:40 PM
    Yes Shamim, the problem was that smile
  • Picture of alireza zare
    Fri, 24 Mar 2017, 4:39 AM
    hi
    i use moodle3.2 and install this dalender but not hijri in curser details
    plz help me
  • Picture of Shamim Rezaie
    Mon, 27 Mar 2017, 7:57 AM
    Hi Alireza,
    Unfortunately, I didn't understand your problem.
  • Picture of Amin Farajzadeh
    Sat, 9 Dec 2017, 7:06 PM
    hi

    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, 12 Dec 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');

    by

    $datetime = date('Y-m-d-H-m-s', $datetime);
  • Picture of Moien Abadi
    Sun, 31 Dec 2017, 5:37 PM
    Hi
    I suggest to solve this issue as Amin reported (problem in profilefield datetime for PersianCalendar) in new version of Moodle.
    Thanks
  • Picture of Payman Zafar
    Mon, 18 Jun 2018, 4:33 PM
    Hi,
    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, 18 Jun 2018, 4:41 PM
    Thank you, Payman for your interest in the plugin. Please file a ticket at https://github.com/rezaies/moodle-calendartype_jalali/issues.
1 2
Please login to post comments