Fix chat display to show timezones correctly

This commit is contained in:
moodler
2005-04-25 16:40:39 +00:00
parent df0fcc6f78
commit d071637f39
+3 -1
View File
@@ -114,7 +114,9 @@
if ($chat->chattime and $chat->schedule) { // A chat is scheduled
if (abs($USER->timezone) > 13) {
if (floatval($USER->timezone) !== $USER->timezone) { // Text value
$timezone = $USER->timezone;
} else if (abs($USER->timezone) > 13) {
$timezone = get_string('serverlocaltime');
} else if ($USER->timezone < 0) {
$timezone = 'GMT'.$USER->timezone;