mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Gotcha! The event time in day view didn't respect the user's time format
preference. Now it does.
This commit is contained in:
parent
fbb56b9db7
commit
2727648d55
1 changed files with 1 additions and 4 deletions
|
@ -549,10 +549,7 @@ function calendar_print_event($event) {
|
|||
if (!empty($event->time)) {
|
||||
echo '<span style="float:right;" class="cal_event_date">'.$event->time.'</span>';
|
||||
} else {
|
||||
if (!isset($strftimetime)) {
|
||||
$strftimetime = get_string('strftimetime');
|
||||
}
|
||||
echo '<span style="float:right;" class="cal_event_date">'.userdate($event->timestart, $strftimetime).'</span>';
|
||||
echo '<span style="float:right;" class="cal_event_date">'.calendar_time_representation($event->timestart).'</span>';
|
||||
}
|
||||
|
||||
echo "</td></tr>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue