Skip to content
Permalink
Browse files

Merge branch 'MDL-63916-35' of git://github.com/damyon/moodle into MO…

…ODLE_35_STABLE
  • Loading branch information...
sarjona committed Jan 16, 2019
2 parents b4ce080 + 55a1e8b commit e618ee9fb52ba3508d856fc94ce53d8ef332dd71
Showing with 5 additions and 2 deletions.
  1. +5 −2 backup/util/ui/backup_ui_setting.class.php
@@ -751,8 +751,11 @@ public function get_static_value() {
if ($value === false) {
$value = $this->attributes['defaultvalue'];
}
if (!empty($value) && $this->attributes['type'] === 'date_selector') {
return userdate($value);
if (!empty($value)) {
if ($this->attributes['type'] === 'date_selector' ||
$this->attributes['type'] === 'date_time_selector') {
return userdate($value);
}
}
return $value;
}

0 comments on commit e618ee9

Please sign in to comment.
You can’t perform that action at this time.