Dates In Completion Tracking

Dates In Completion Tracking

by Keith C -
Number of replies: 5

In the completion settings on my modules I am seeing the date in the form equal to the date in the database minus one day.  

This is a bug.

Just upgraded Moodle to the most recent software.

Average of ratings: -
In reply to Keith C

Re: Dates In Completion Tracking

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Open a tracker report in tracker.moodle.org with full details of how to reproduce the problem you are seeing. 

You've not really given us enough (any) information to go on here. Which database field? Which version of Moodle? Which completion setting? And so on...

In reply to Howard Miller

Re: Dates In Completion Tracking

by Keith C -

I have actually seen this before:

https://moodle.org/mod/forum/discuss.php?d=331954#p1336848


if I remember correctly I changed themes and the problem went away last time....but all of the three themes included with the most recent version include the bug...I might suggest every single Moodle installation actually has the dates wrong in the database at this point!!!!

The completion date you set on course items is housed in course_modules field completionexpected.


 

In reply to Keith C

Re: Dates In Completion Tracking

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I honestly don't know anything about how completion works under the hood, but I'd be really surprised if it had anything to do with the theme. 

That field is set from (as far as I can tell) every activity type by calling 'update_completion_date_event' in completion/classes/api.php

In reply to Howard Miller

Re: Dates In Completion Tracking

by Keith C -

Seems to be working correctly now.  So very odd.  

In reply to Keith C

Re: Dates In Completion Tracking

by Keith C -

Whoever fixed it can you check to see if the LTI is sending the ip address to with the external query?