Coder Social home page Coder Social logo

moodle-calendartype_hijri's People

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

azmatullah

moodle-calendartype_hijri's Issues

getdate(): Argument #1 ($timestamp) must be of type ?int, string given

moodle version : 4.1
php version : 8.1
i am trying to use userdate with hijri calander and this get:
line 2406 of /lib/moodlelib.php: TypeError thrown
line 2406 of /lib/moodlelib.php: call to getdate()
line 355 of /calendar/type/gregorian/classes/structure.php: call to usergetdate()
line 383 of /calendar/type/hijri/classes/structure.php: call to calendartype_gregorian\structure->timestamp_to_date_array()
line 337 of /calendar/type/hijri/classes/structure.php: call to calendartype_hijri\structure->timestamp_to_date_array()
line 2321 of /lib/moodlelib.php: call to calendartype_hijri\structure->timestamp_to_date_string()

Missing required key in single structure: year

Hello
i installed the hijri calendar with moodle 3.10 and the default boost theme and am getting this error

Missing required key in single structure: year
Error code: invalidparameter

  • line 349 of /lib/externallib.php: invalid_parameter_exception thrown
  • line 240 of /lib/externallib.php: call to external_api::validate_parameters()
  • line 81 of /lib/ajax/service.php: call to external_api::call_external_function()

Screenshot_2021-01-09 Dashboard

Dates mismatching

We're facing some dates mismatching issue while using HIJRI calendar even we used algorithm either A or B, below are some details.

Lets use Month Rajab in our example.

Total no. of days in UmmulQura : 29
Total no. of days if we used algorithm A: 30 days
Total no. of days if we used algorithm B: 30 days

Due to no. of days difference its impact on some dates as well.

1st Rajab as per UmmulQura is : Friday 8/3/2019
1st Rajab as per Algorithm A is : Friday 8/3/2019 (1 Day extra in last of Month)
1st Rajab as per Algorithm B is: Thursday 7/3/2019(1 Day extra in last of Month)

Can you consider to add UmmulQura as a new Algorithm?
The official website of UmmulaQura calender : http://www.ummulqura.org.sa/

Note: Android also using UmmulaQura Algoritham in core calendar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.