Persian calendar
Maintained by
Shamim Shamim
This plugin provides Jalali calendar support for Moodle
Comments
Comments are no longer open for new posts. Existing comments remain available to read.
من درحال طراحی یک افزونه هستم
میخواستم در افزونه ام از تاریخ شمسی استفاده کنم
چگونه باید از توابع شما کمک بگیرم
باتشکر
Use the latest version from GitHub
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
تقویم با مودل های 3.8 و 3.9 مشکل داره
و اعداد تاریخ ها به هم میریزه
یه بررسی می کنید
تو فروم طرح کردم
It seems that it doesn't work for 3.8 version! Is it right?
Thanks
وقتی وارد دیباگینگ مد مودل میشم این ارور رو چندین بار لیست میکنه ممنون میشم ببینید مشکل از کجاست:
Warning: A non-numeric value encountered in /var/www/html/moodle/calendar/type/jalali/classes/structure.php on line 356
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.
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.
I suggest to solve this issue as Amin reported (problem in profilefield datetime for PersianCalendar) in new version of Moodle.
Thanks
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);