Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Course start date and Course end date #245

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

eliasfarah
Copy link

Added Course start date and Course end date

@bozoh bozoh changed the base branch from master to develop November 4, 2022 20:23
@@ -1406,7 +1406,9 @@ protected function get_certificate_text($issuecert, $certtext = null) {
$a->date = $this->get_date($issuecert, $user->id);
$a->outcome = $this->get_outcome($user->id);
$a->certificatecode = $issuecert->code;

$a->coursestart = $this->get_course()->startdate ? date('d/m/Y', $this->get_course()->startdate): '';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The date format is hardcoded, many places use other date formats then d/m/Y, should use a locale date format, or use a field in certificate configuration where an user specify the date format

Copy link
Owner

@bozoh bozoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants