mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 02:46:40 +02:00
MDL-63916 backup: Do not display timestamp
Convert the date+time field to a userdate for display.
This commit is contained in:
parent
56d8e413ba
commit
55a1e8b719
1 changed files with 5 additions and 2 deletions
|
@ -751,9 +751,12 @@ class backup_setting_ui_defaultcustom extends backup_setting_ui_text {
|
||||||
if ($value === false) {
|
if ($value === false) {
|
||||||
$value = $this->attributes['defaultvalue'];
|
$value = $this->attributes['defaultvalue'];
|
||||||
}
|
}
|
||||||
if (!empty($value) && $this->attributes['type'] === 'date_selector') {
|
if (!empty($value)) {
|
||||||
|
if ($this->attributes['type'] === 'date_selector' ||
|
||||||
|
$this->attributes['type'] === 'date_time_selector') {
|
||||||
return userdate($value);
|
return userdate($value);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue