vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   2.0 Default Time Display (GMT-xx) (https://vborg.vbsupport.ru/showthread.php?t=9769)

JimF 02-25-2001 04:13 PM

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:

$bbuserinfo['timezoneoffset']=0

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

PHP Code:

$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

02-25-2001 04:18 PM

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:

telc 10-06-2002 06:17 PM

Thanks alot!

fello9 12-03-2002 04:30 AM

Thank you, I just used it.

snoopy2 12-03-2002 06:58 AM

thx!

basurf 12-13-2002 03:19 AM

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

sessions.php

$bbuserinfo['timezoneoffset']=-6;

mtha 03-03-2003 04:21 AM

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:

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


Gamelobby 07-08-2009 06:11 AM

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.?

massi64 07-20-2009 05:16 AM

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

thanks

mme42 07-20-2009 06:53 AM

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.


All times are GMT. The time now is 03:25 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01050 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete