## Calendars: Persian calendar

calendartype_jalali
Maintained by Shamim Rezaie
This plugin provides Jalali calendar support for Moodle
151 sites
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.

### Awards

• Thu, 6 Aug 2015, 5:25 PM
Thank you very much, it works on my moodle (2.9).
• 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
• 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?
• 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
• Tue, 26 Apr 2016, 5:44 PM
I fixed it my friends, LOL
• Sun, 11 Dec 2016, 5:59 PM
I have same problem mrs maryam norouzi. plz guide me
• 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)
• Mon, 12 Dec 2016, 12:40 PM
Yes Shamim, the problem was that
• 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
• Mon, 27 Mar 2017, 7:57 AM
Hi Alireza,
Unfortunately, I didn't understand your problem.
• 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 .
• 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);
• 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
• 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.