Skip to content

Commit 22d16a0

Browse files
author
r.tschu
committed
removed timezone support just display "set"
1 parent 4ca374e commit 22d16a0

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

amd/src/edit_timeframe.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ define(['jquery', 'core/modal_factory', 'core/templates', 'core/str', 'core/url'
8585
startdates[elementNo] = times.starttime;
8686
enddates[elementNo] = times.endtime;
8787
if (settime) {
88-
document.getElementById('timehint_' + elementNo).innerHTML =
89-
get_time_as_string('start') + " - " + get_time_as_string('end');
88+
str.get_string('time_set', 'block_evasys_sync', function (s) {
89+
document.getElementById('timehint_' + elementNo).innerHTML = s;
90+
});
9091
} else {
9192
document.getElementById('timehint_' + elementNo).innerHTML = "";
9293
}

classes/admin_form.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -191,14 +191,9 @@ private function table_body() {
191191
$mform->addElement('html', $htmlurl);
192192
$startdate = $record->get('standard_time_start');
193193
$enddate = $record->get('standard_time_end');
194-
if ($startdate && $enddate) {
195-
$startdate = usertime($startdate);
196-
$enddate = usertime($enddate);
197-
}
198194
if ($startdate) {
199-
$mform->addElement('html', "<br/><div id='timehint_$i'>" . date('d.m.Y H:i', $startdate)
200-
. ' - ' .
201-
date('d.m.Y H:i', $enddate) . "</div>");
195+
$mform->addElement('html', "<br/><div id='timehint_$i'>" .
196+
get_string('time_set', 'block_evasys_sync'). "</div>");
202197
} else {
203198
$mform->addElement('html', "<br/><div id='timehint_$i'></div>");
204199
}

0 commit comments

Comments
 (0)