mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 12:45:04 +01:00
Merge branch 'MDL-46676_master' of https://github.com/ikawhero/moodle
This commit is contained in:
commit
27e7715141
@ -79,7 +79,7 @@ class profile_field_datetime extends profile_field_base {
|
||||
// If timestamp then explode it to check if year is within field limit.
|
||||
$isstring = strpos($datetime, '-');
|
||||
if (empty($isstring)) {
|
||||
$datetime = date('Y-m-d-H-i-s', $datetime);
|
||||
$datetime = userdate($datetime, '%Y-%m-%d-%H-%M-%S');
|
||||
}
|
||||
|
||||
$datetime = explode('-', $datetime);
|
||||
@ -110,4 +110,4 @@ class profile_field_datetime extends profile_field_base {
|
||||
return userdate($this->data, $format);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user