[4.5]Course start date is 0

[4.5]Course start date is 0

by Richard van Iwaarden -
Number of replies: 3

I have 6381 courses that have no start date in my Moodle installation. I have not noticed this, and it doesn't really seem to be a problem so far. In the database the start date is '0'.

When the course settings page is opened, the course start date always shows as the current time.

I am wondering how it would act on the dashboard when selecting 'past, in progress or future' courses.

But... is this a problem anywhere else? It might have happened by creating the courses using api/webservices and not adding the course start date field correctly.

Please let me know your thoughts on this smile

Average of ratings: Useful (1)
In reply to Richard van Iwaarden

Re: [4.5]Course start date is 0

by Gareth Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Off the top of my head the 'past, in progress or future' courses on the Dashboard relate to the enrolled courses of the user, thus their particular enrolment, not to do with the actual course start date.
In reply to Gareth Barnard

Re: [4.5]Course start date is 0

by Gareth Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
I sit corrected, it is on course start date! For 'Course overview' on the 'My Courses' page.  Did a quick test on a course that had a start date in the future and was showing as such, changed it's DB entry for 'startdate' to 0, and now its showing as 'In progress'.
Average of ratings: Useful (3)
In reply to Gareth Barnard

Re: [4.5]Course start date is 0

by Richard van Iwaarden -
Thanks for that Gareth! So course start date = 0 means that the course is flagged as 'in progress'. I don't think I have anything to worry about then smile

We will start checking for ourselves if something went wrong on creating the courses using API's. I think we give it a start date, but it might be in the wrong format or something.
 
I see that giving a start date to a course is optional:
 
startdate int  Optional //timestamp when the course start
Average of ratings: Useful (1)