Merge branch 'MDL-63119-34' of git://github.com/lameze/moodle into MOODLE_34_STABLE
This commit is contained in:
@@ -92,6 +92,10 @@ class event_exporter extends event_exporter_base {
|
||||
}
|
||||
$values['url'] = $url->out(false);
|
||||
|
||||
// Override default formatted time to make sure the date portion of the time is always rendered.
|
||||
$legacyevent = container::get_event_mapper()->from_event_to_legacy_event($event);
|
||||
$values['formattedtime'] = calendar_format_event_time($legacyevent, time(), null, false);
|
||||
|
||||
if ($event instanceof action_event_interface) {
|
||||
$actionrelated = [
|
||||
'context' => $context,
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-xs-1">{{#pix}} i/calendareventtime, core, {{#str}} when, core_calendar {{/str}} {{/pix}}</div>
|
||||
<div class="col-xs-11">{{#userdate}} {{timestart}}, {{#str}} strftimerecentfull {{/str}} {{/userdate}}</div>
|
||||
<div class="col-xs-11">{{{formattedtime}}}</div>
|
||||
</div>
|
||||
<div class="row m-t-1">
|
||||
<div class="col-xs-1">{{#pix}} i/calendar, core, {{#str}} eventtype, core_calendar {{/str}} {{/pix}}</div>
|
||||
|
||||
Reference in New Issue
Block a user