|
@@ 1606-1610 (lines=5) @@
|
| 1603 |
|
// Exercise already exists |
| 1604 |
|
if ($id) { |
| 1605 |
|
// we prepare date in the database using the api_get_utc_datetime() function |
| 1606 |
|
if (!empty($this->start_time) && $this->start_time != '0000-00-00 00:00:00') { |
| 1607 |
|
$start_time = $this->start_time; |
| 1608 |
|
} else { |
| 1609 |
|
$start_time = '0000-00-00 00:00:00'; |
| 1610 |
|
} |
| 1611 |
|
|
| 1612 |
|
if (!empty($this->end_time) && $this->end_time != '0000-00-00 00:00:00') { |
| 1613 |
|
$end_time = $this->end_time; |
|
@@ 1678-1682 (lines=5) @@
|
| 1675 |
|
// In this function, api_set_default_visibility, |
| 1676 |
|
// the Quiz is saved too, with an $id and api_get_utc_datetime() is done. |
| 1677 |
|
// If we do it now, it will be done twice (cf. https://support.chamilo.org/issues/6586) |
| 1678 |
|
if (!empty($this->start_time) && $this->start_time != '0000-00-00 00:00:00') { |
| 1679 |
|
$start_time = $this->start_time; |
| 1680 |
|
} else { |
| 1681 |
|
$start_time = '0000-00-00 00:00:00'; |
| 1682 |
|
} |
| 1683 |
|
|
| 1684 |
|
if (!empty($this->end_time) && $this->end_time != '0000-00-00 00:00:00') { |
| 1685 |
|
$end_time = $this->end_time; |