mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
Merge branch 'MDL-63916-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
32c863f276
@ -751,8 +751,11 @@ class backup_setting_ui_defaultcustom extends backup_setting_ui_text {
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user