Dates Changing When Restoring Courses

Dates Changing When Restoring Courses

Tara Dem -
回帖数:4

Hello,

I've struggled with this all day. For our courses we utilize "master" copies to work in which we backup and restore into  several exact course sections. The problem my colleague and I have run into occurs when we've completed our master courses and assigned assignment/discussion/etc. due dates, and have backed up our master copy. Once we restore FROM the master into the individual course sections assignment due dates change from what we've assigned to 10 years from now. Our school has recently upgraded to 3.4 version; the prior version we used did not present this problem.
As we have exact duplicate course sections, time is wasted if we have to change dates for each section when we SHOULD be able to simply restore from the master WITH the correctly assigned master due dates.

I did see a forum with a delay in the Moodle calendar for dates posting, but I do't feel this is the same situation. I've waited 8 hours today to see if dates would change to what I've assigned, but they have not.

Has anyone encountered this problem or can help me resolve the issue?
Example-   ENG 111 Master: Assignment 1 due 8/25/18  
when the course is restored into ENG 111 IN1 Section: Assignment 1 due 12/21/2027

Thanks!

Screenshot 1: MASTER Section date set

Screenshot 2: After restored into section dates have changed for ALL assignments

平均分:Useful (1)
回复Tara Dem

Re: Dates Changing When Restoring Courses

Helen Foster -
Core developers的头像 Documentation writers的头像 Moodle HQ的头像 Particularly helpful Moodlers的头像 Plugin developers的头像 Testers的头像 Translators的头像

Hi Tara,

I searched in the Moodle Tracker to check whether the problem you describe had been reported, and came across MDL-62570. It's not exactly the same, but maybe you could try the workarounds suggested in the issue, and comment in the issue with any further info that may help developers in providing a fix.

回复Tara Dem

Re: Dates Changing When Restoring Courses

Rachel Martin -

We just had a similar issue, though ours only jumped a couple years.  We went from 2018 to 2020.  Of course, right now we are testing an upgrade, so I was pulling this course from a server running the upgrade, Moodle 3.5, to a server running Moodle 3.1, but I have had someone complain about this issue in the past as well.  The servers are set to the same time & timezone.

If I get time, I'm going to see if I can look at what timestamps are put into the backup files.

回复Tara Dem

Re: Dates Changing When Restoring Courses

Andrew Normore -

Hi everyone, we are experiencing this bug... It is marked as low priority?

This is a huge bug and should be fixed ASAP...


It will likely be a while... I'll try to jump in and see if I can find anything in the code... 

回复Tara Dem

Re: Dates Changing When Restoring Courses

Jari Vilkman -

Hello,


Tested on Moodle 3.6 (Build: 20181203).


It seems that restoring course backup AND while doing it changing the course start date from the original changes also course assignment-activities due dates.


Is this intentional or not? Should assignment due dates remain same as they were in the backup when you change course start date? At the moment they do.


Steps to repeat:


1. Create course with start date of 08.10.2018

2. Create assignment with Due dates:


Allow submissions from 07.10.2018 clock 00:00

Due date 14.10.2018 clock 00:00

Cut-off date 14.10.2018 clock 10:24

Remind me to grade by 21.10.2018 clock 00:00


3. Take a backup of the course.


4. Start to restore this backup as a new course. When restoring the course on page "4. Scheme" change course start date to 07.12.2018 (current date)


5. When course restore is complete check assignment due dates. They are now


Allow submissions from 06.12.2018 clock 00:00

Due date 13.12.2018 clock 00:00

Cut-off date 13.12.2018 clock 10:24

Remind me to grade by 20.12.2018 clock 00:00


So all the dates have jumped to selected (or current) month and from the date have been subtracted one day f.ex due date 14.10.2018 is now 13.12.2018