mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +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,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…
Add table
Add a link
Reference in a new issue