Fixed default time in thematic advance creation

skala
Yannick Warnier 15 years ago
parent 45bb214a87
commit 6c7b3f8c52
  1. 2
      main/course_progress/thematic_advance.php

@ -76,7 +76,7 @@ if ($action == 'thematic_advance_add' || $action == 'thematic_advance_edit') {
$form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"'); $form->addElement('style_submit_button', null, get_lang('Save'), 'class="save"');
$default['start_date_type'] = 1; $default['start_date_type'] = 1;
$default['custom_start_date'] = date('d-F-Y 00:00'); $default['custom_start_date'] = date('d-F-Y H:i',api_strtotime(api_get_local_time()));
if (!empty($thematic_advance_data)) { if (!empty($thematic_advance_data)) {
// set default values // set default values

Loading…
Cancel
Save