Explorar o código

Fix issue with exercise end date always showing one day after start - refs BT#12389

Yannick Warnier %!s(int64=8) %!d(string=hai) anos
pai
achega
9ae045a722
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main/exercise/exercise.class.php

+ 1 - 1
main/exercise/exercise.class.php

@@ -2353,7 +2353,7 @@ class Exercise
                 }
 
                 $defaults['start_time'] = !empty($this->start_time) ? api_get_local_time($this->start_time) : date('Y-m-d 12:00:00');
-                $defaults['end_time'] = empty($this->end_time) ? api_get_local_time($this->end_time) : date('Y-m-d 12:00:00', time()+84600);
+                $defaults['end_time'] = !empty($this->end_time) ? api_get_local_time($this->end_time) : date('Y-m-d 12:00:00', time()+84600);
 
                 // Get expired time
                 if ($this->expired_time != '0') {