The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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: PHP Code:
PHP Code:
Just thought I'd share . -jim |
#2
|
|||
|
|||
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
|
#3
|
||||
|
||||
Thanks alot!
|
#4
|
|||
|
|||
Thank you, I just used it.
|
#5
|
|||
|
|||
thx!
|
#6
|
|||
|
|||
That code edit didn't seem to work for me. Front page still shows the time in GMT.
sessions.php $bbuserinfo['timezoneoffset']=-6; |
#7
|
||||
|
||||
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 PHP Code:
|
#8
|
||||
|
||||
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.? |
#9
|
|||
|
|||
i have vbulletin 3.8.3 and i cant find sessions.php , can you guys tell me where is it ?
anybody ? thanks |
#10
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|