|
@@ 1539-1543 (lines=5) @@
|
| 1536 |
|
// Exercise already exists |
| 1537 |
|
if ($id) { |
| 1538 |
|
// we prepare date in the database using the api_get_utc_datetime() function |
| 1539 |
|
if (!empty($this->start_time) && $this->start_time != '0000-00-00 00:00:00') { |
| 1540 |
|
$start_time = $this->start_time; |
| 1541 |
|
} else { |
| 1542 |
|
$start_time = '0000-00-00 00:00:00'; |
| 1543 |
|
} |
| 1544 |
|
|
| 1545 |
|
if (!empty($this->end_time) && $this->end_time != '0000-00-00 00:00:00') { |
| 1546 |
|
$end_time = $this->end_time; |
|
@@ 1609-1613 (lines=5) @@
|
| 1606 |
|
// In this function, api_set_default_visibility, |
| 1607 |
|
// the Quiz is saved too, with an $id and api_get_utc_datetime() is done. |
| 1608 |
|
// If we do it now, it will be done twice (cf. https://support.chamilo.org/issues/6586) |
| 1609 |
|
if (!empty($this->start_time) && $this->start_time != '0000-00-00 00:00:00') { |
| 1610 |
|
$start_time = $this->start_time; |
| 1611 |
|
} else { |
| 1612 |
|
$start_time = '0000-00-00 00:00:00'; |
| 1613 |
|
} |
| 1614 |
|
|
| 1615 |
|
if (!empty($this->end_time) && $this->end_time != '0000-00-00 00:00:00') { |
| 1616 |
|
$end_time = $this->end_time; |