From: moodler Date: Sat, 7 Feb 2004 12:27:23 +0000 (+0000) Subject: Added timezone display to reduce confusion X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1eddd0d8f55e0659228c5c7857afec366cadfac8;p=moodle.git Added timezone display to reduce confusion --- diff --git a/mod/chat/view.php b/mod/chat/view.php index 9e1190e613..3d1b910ef5 100644 --- a/mod/chat/view.php +++ b/mod/chat/view.php @@ -95,7 +95,14 @@ if ($chat->chattime and $chat->schedule) { // A chat is scheduled - echo "

$strnextsession: ".userdate($chat->chattime)."

"; + if (abs($USER->timezone) > 13) { + $timezone = get_string("serverlocaltime"); + } else if ($USER->timezone < 0) { + $timezone = "GMT".$USER->timezone; + } else { + $timezone = "GMT+".$USER->timezone; + } + echo "

$strnextsession: ".userdate($chat->chattime)." ($timezone)

"; } else { echo "
"; }