Every time I save a node type that is assigned to gradebook, the due date/time changes. Usually only the time data changes, but the time may change to where the date also changes by one day forward/backward.

Lately I am experiencing the date changes to 1970-01-01 intermittently. When this happens, the node itself disappears from the list of assignments because the due date is way passed the current date/time.

This has been 100% reproducible. Any help would be appreciated.

Comments

MGN’s picture

I am still noticing something like this in the latest code, but only when a new assignment is created. Once created, you can edit the assignment and reset the grade and it works correctly after that. I hope to be able to fix the quickly. Thanks for the report.

MGN’s picture

Ok. In the latest code, the problem was that the sub module hooks were getting called before the base gradebookapi hooks. By making sure the module weight of the submodules is greater than gradebookapi, the date problems that I was experiencing have been eliminated. I just committed some changes to the 6.x.2.x-dev, and those should be available with the next nightly snapshot. Let me know if this fixes the problems that you are seeing. Thanks!

MGN’s picture

Status: Active » Fixed

Closing this issue because no feedback in 5 weeks and the code has been updated several times. If this problem persists in the latest code, please reopen.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.