From 1eddd0d8f55e0659228c5c7857afec366cadfac8 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 7 Feb 2004 12:27:23 +0000 Subject: [PATCH] Added timezone display to reduce confusion --- mod/chat/view.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 "
"; } -- 2.39.5