Browse Source

Correção da data final do certificado para 40 dias

temp
root 9 years ago
parent
commit
d2b0e49e60
  1. 2
      type/ILB_Com_tutoria_2014/certificate.php

2
type/ILB_Com_tutoria_2014/certificate.php

@ -36,7 +36,7 @@ if (!defined('MOODLE_INTERNAL')) {
require_once("$CFG->dirroot/completion/completion_completion.php"); require_once("$CFG->dirroot/completion/completion_completion.php");
$start_date = $course->startdate; $start_date = $course->startdate;
$end_date = $start_date + 40 * 24 * 60 * 60; // 40 days * 24 hours * 60 min * 60 sec; ugly hack! $end_date = $start_date + 39 * 24 * 60 * 60; // 40 days * 24 hours * 60 min * 60 sec; ugly hack!
$fmt = '%d/%m/%Y'; // Default format $fmt = '%d/%m/%Y'; // Default format
if ($certificate->datefmt == 1) { if ($certificate->datefmt == 1) {

Loading…
Cancel
Save