PDA

View Full Version : [fixed] Itsy bitsy prob with user's time diff.


s.molinari
Sat 16th Jun '01, 2:40pm
If the user has a +1 or -1 hour time difference from GMT then vB says: All times are GMT +1 hours.

Here is the code to correct the problem(found in ./global.php):


$timediff='';
if ($bbuserinfo['timezoneoffset']!=0) {
if (($bbuserinfo['timezoneoffset']==1)||($bbuserinfo['timezoneoffset']==-1)){
$timediff=" $bbuserinfo[timezoneoffset] hour";
}else{
$timediff=" $bbuserinfo[timezoneoffset] hours";
}//endif
}//endif


I said it was a small problem.:) But, we're all looking for perfection and with vB2.0.1 it's getting easier and easier. ;)

Scott

s.molinari
Sun 17th Jun '01, 4:37am
Will this get moved to the bugs forum? It is a bug isn't it?


Scott

John
Sun 17th Jun '01, 5:53pm
Fixed.

John