Page 1 of 2

Closing date

Posted: Sun Jan 02, 2022 5:37 pm
by Graeme59
Hi,
Happy New Year.
Forma 3.0.1
I have Refresher modules, set to start on a set date 1/09/2022 then due to close on 30/09/2022 (see image Back)
The My Courses page, it is showing the module closing on 1 January 1970. See (image Front)
If I remove the end date and add 30 days validity it shows 19th September 2021 as the end date?
Any ideas what this may be?
Cheers
Graeme

Re: Closing date

Posted: Sun Jan 02, 2022 6:59 pm
by max
Hi Graeme, are you sure you inserted the dates in the correct format? It should be dd-mm-yyyy, not with the slash.
If you put the slash, it might be that after saving your course the system reset it to the default.

Also, days of validity doesn't have nothing to do with the date shown as end date.

Re: Closing date

Posted: Mon Jan 03, 2022 11:09 am
by Graeme59
Hi Max,
The slash is the only option, it adds them automatically.
In addition, I have just noticed the automated reports are not being sent.
The only change I can see is my hosting company updated the PHP 7.4 to 7.4.27 could this cause an issue?
Cheers
Graeme

Re: Closing date

Posted: Mon Jan 03, 2022 11:28 am
by max
This is what I see: I set October 24th and it shows correctly in the front end.
timeoptions.PNG
timeoptions.PNG (4.15 KiB) Viewed 2100 times
closing_date.PNG
closing_date.PNG (10.24 KiB) Viewed 2100 times
I don't think the php version is an issue.

Finally, just check if the cron job is correctly set.

Re: Closing date

Posted: Mon Jan 03, 2022 12:07 pm
by Graeme59
Hi Max,
Ah, the cron job makes sense!
How strange that you are seeing - and I am seeing /.
Also, the text is different. Yours shows 'Closing date' mine shows 'Closing data'.
The correct date is shown in the Dashboard Calendar.
Cheers
Graeme

Re: Closing date

Posted: Mon Jan 03, 2022 12:26 pm
by max
The text ("closing data") is just a typo in the language management, you can correct it there just like I did in my installation.

Re: Closing date

Posted: Mon Jan 03, 2022 12:34 pm
by Graeme59
Hi Max,
Repaired the typo thank you.

Re: Closing date

Posted: Tue Jan 18, 2022 12:25 pm
by Graeme59
Hi Max,
Any thoughts on the date issue?
Where does the date picker in the Course Time (not editions), draw the current date from, when I open it, it's showing by default November 0?
Cheers
Graeme

Re: Closing date

Posted: Tue Jan 18, 2022 12:37 pm
by alfa24
I think datepicker is not using the same separator and date format as in your regional settings.

Re: Closing date

Posted: Tue Jan 18, 2022 12:52 pm
by Graeme59
Hi alfa24,
Thanks for your assistance.

My regional settings in my config.php file are below and I can't see any ref in my php.ini file to timezone or location.

//$cfg['timezone'] = 'Europe/London'; // define if different from php.ini setting
//$cfg['set_mysql_tz'] = false; // set mysql timezone same as php timezone , default false

This has also affected my timed reports, changed cron but reports are still not being sent.
Cheers
Graeme