I assume that your localtime is in the same timezone as your Moodle server time. Therefore you did not experience any problem with timestamp. Therefore you need not change anything in the original shoutbox.php code if the staus quo remains for you. But if in future you do change to a moodle server that is in a different time zone, then you have to take heed to the solution below.
Yvonne of the Netherlands experienced a problem as she has a 6 hour difference between her local time and the moodle server she is using.
To solve her problem, I had to squash a hidden (until now) bug in the shoutbox.php original code as follows:
Go to shoutbox.php, line 193.
Modify the code as shown in red text below.
Line 193: $date = substr($date,-18,8);
Line 194: $date = str_replace (".0", ".", $date);
Line 195: $date = str_replace (" 0", " ", $date);
Line 196: $shout = $shout." (".$jd.", ".$date.", ".$time.")";
Basically, just two changes to the code and you are home.
(at line 193) Change 18 to 8
(at line 196) Insert the code ", ".$time. to that line $shout = $shout." (".$jd.", ".$date.")";
I've purposely set my config.php's
$timeoffset = 6;
and I've tested it on my Moodle site at
Works for me. Just thought you might want to know this.
Now the Shotbox (Whisperbox) is perfect.