xibosignage / xibo

Xibo Digital Signage
https://xibosignage.com
GNU Affero General Public License v3.0
579 stars 165 forks source link

Jalali Calendar - prevents some forms from being saved #1715

Open PeterMis opened 5 years ago

PeterMis commented 5 years ago

When we switch CALENDAR_TYPE to Jalali on Settings page ans Save it will save correctly.

However when we try to save the settings again (even without any changes) it will show Sorry the form has expired. Please refresh. toast message and Uncaught TypeError: Cannot read property 'months' of undefined error in the console.

The console errors comes from bootstrap-datetimepicker-jalali.js.

If we switch the language to Persian (fa) then the Jalali calendar seems to work correctly, forms can be saved and there are no errors in the console.

armaghan-beh commented 4 years ago

Hi, I have this problem right now and I changed language and set it to "fa" and "fa_IR", but nothing changed and problem still exists :( can you help me, I don't know what to do