Helpful Information
 
 
Category: vBulletin.org Forum
2.0 Default Time Display (GMT-xx)

Many people have been complaining about the fact that unregistered users see all times on the board in GMT, despite what is set in the Control Panel. In order for timezoneoffset to work, the user has to have a timezone offset specified in their profile. I wanted to fix this on my board, and thought I'd share what I did.

In sessions.php, all you have to do is modify the timezone offset for guests. On line 285, find where it says:

$bbuserinfo['timezoneoffset']=0;

and change that to whatever you'd like the default time to be. For example, I have:

$bbuserinfo['timezoneoffset']=-5;

The only thing that this doesn't do is change the part of the board that says "All times are GMT..." - but at least where it says "Time Now:" will be correct, and not 5 hours ahead of 99.99% of my visitors.

Just thought I'd share :).

-jim

timezones are a pain - i have alot of US, European and Australia based members and the timezone offset causes problems cause i like to set it as default Brisbane, Australian time - and of course to make this even more difficult, Brisbane /Queensland is the only state in Australia which abolished daylight savings :rolleyes:

Thanks alot!

Thank you, I just used it.

thx!

That code edit didn't seem to work for me. Front page still shows the time in GMT.

sessions.php

$bbuserinfo['timezoneoffset']=-6;

wondeeful.

a small tip for those who are in GMT +x time

use " +x" , so your board will say
All times are GMT +x hours
instead of
All times are GMT x hours

$bbuserinfo['timezoneoffset']="+1";

I know this is old, but i am having a similar problem.. And i cant find sessions.php

Mine is not just for guests.. but everyone, no matter what i set in the ACP or what people set in their profile it still says GMT.?

i have vbulletin 3.8.3 and i cant find sessions.php , can you guys tell me where is it ?
anybody ?

thanks

Keep in mind that this thread was started in 2001. I have no idea how vBulletin handled the time then, but I definitely wouldn't be surprised if it's different. In recent versions you can set the default time zone offset in the admincp.

ACP > vBulletin Options > Date and Time Options > Default Time Zone Offset

Then for wording (The time is now....) that's a phrase which can be edited:

[all_times_are_gmt_x_time_now_is_y]

Personally, I'd stick with GMT for the wording if you have users from different countries as it's the most universally known zone. Then, for your default offset, select the time zone where most of your users are from.

If you wanted to edit the wording you could use something like "All times are EST, time now is(2)" In other words, you'd replace "GMT" with the desired zone and remove the "(1)" which inserts the offset amount from GMT. But, I'd stick with GMT myself.

well my problem is that the time it is corect for all the users and server even for users on a different timezone , but the timezone it is 1 hour less for everybody even the server , i mean if i set my timezone to -7 i should see GMT -7 but i see GMT -6 and the time it is correct and this is for everybody server included
i read a lots about this problem i try change things on script but nothing work i whish there is someone out there that knows where the problem is also becouse what the timezone aft to do with the time ? your time zone a will not change that is summer or winter if you live on that time zone the time zone will not change a will change just te time (DST) anyway i need some help to resolve this
help
help
help
:):):)

--------------- Added 1248077744 at 1248077744 ---------------

actualy even here a tells me a different time zone why ????? time correct timezone -1 hour
same as mine forum
what the hell did nobody see this or it is just me ??

A side note, the use of the term GMT is fading into history. The newer terminology is UTC.
http://en.wikipedia.org/wiki/Greenwich_Mean_Time
http://en.wikipedia.org/wiki/Coordinated_Universal_Time

If you have the correct timezone, but are still 1 hour off, then you probably have not set your DST (Dayulight Saving) correctly.

PS This thread is 8 years old and was about vB 2. All the solutions presented in this thread will not work for any newer version!

should start a new thread ??










privacy (GDPR)