Skip to content
Permalink
Browse files
Merge branch 'MDL-61027-34' of git://github.com/rezaies/moodle into M…
…OODLE_34_STABLE
  • Loading branch information
David Monllao committed Feb 5, 2018
2 parents 1a24b6b + ca40c1f commit 496a40a49b45ae65d76a5fddd77eb2e61948013f
Showing with 2 additions and 1 deletion.
  1. +2 −1 user/profile/field/datetime/field.class.php
@@ -81,7 +81,8 @@ public function edit_save_data_preprocess($datetime, $datarecord) {
}

if (is_numeric($datetime)) {
$datetime = userdate($datetime, '%Y-%m-%d-%H-%M-%S');
$gregoriancalendar = \core_calendar\type_factory::get_calendar_instance('gregorian');
$datetime = $gregoriancalendar->timestamp_to_date_string($datetime, '%Y-%m-%d-%H-%M-%S', 99, true, true);
}

$datetime = explode('-', $datetime);

0 comments on commit 496a40a

Please sign in to comment.