ba27489569
If this is not passed in to grade_update(), then it's not passed on to update_raw_grade(), resulting in time() being used instead, which isn't correct. The grade timemodified value should be set to the timestamp provided by the tool in the score post JSON, not the time of the score post itself. Co-authored-by: Jayce Birrell <jayce.birrell@moodle.com>