Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 25 Feb 2001, 17:13
JimF JimF is offline
 
Join Date: Dec 2001
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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
Reply With Quote
  #2  
Old 25 Feb 2001, 17:18
Guest
 
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
Reply With Quote
  #3  
Old 06 Oct 2002, 19:17
telc's Avatar
telc telc is offline
 
Join Date: Dec 2001
Thanks alot!
Reply With Quote
  #4  
Old 03 Dec 2002, 05:30
fello9 fello9 is offline
 
Join Date: Jul 2002
Thank you, I just used it.
Reply With Quote
  #5  
Old 03 Dec 2002, 07:58
snoopy2 snoopy2 is offline
 
Join Date: Aug 2002
thx!
Reply With Quote
  #6  
Old 13 Dec 2002, 04:19
basurf basurf is offline
 
Join Date: Dec 2002
That code edit didn't seem to work for me. Front page still shows the time in GMT.

sessions.php

$bbuserinfo['timezoneoffset']=-6;
Reply With Quote
  #7  
Old 03 Mar 2003, 05:21
mtha's Avatar
mtha mtha is offline
 
Join Date: Jul 2002
Real name: Ha Mai
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


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #8  
Old 08 Jul 2009, 07:11
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
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.?
Reply With Quote
  #9  
Old 20 Jul 2009, 06:16
massi64 massi64 is offline
 
Join Date: Jun 2009
i have vbulletin 3.8.3 and i cant find sessions.php , can you guys tell me where is it ?
anybody ?

thanks
Reply With Quote
  #10  
Old 20 Jul 2009, 07:53
mme42 mme42 is offline
 
Join Date: Feb 2009
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.
Reply With Quote
  #11  
Old 20 Jul 2009, 08:12
massi64 massi64 is offline
 
Join Date: Jun 2009
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 20 Jul 2009 at 08:15 ---------------

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

Last edited by massi64; 20 Jul 2009 at 08:15. Reason: Auto-Merged DoublePost
Reply With Quote
  #12  
Old 20 Jul 2009, 08:25
Gerald_D Gerald_D is offline
 
Join Date: Apr 2007
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
Reply With Quote
  #13  
Old 20 Jul 2009, 14:11
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
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!
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #14  
Old 20 Jul 2009, 21:47
massi64 massi64 is offline
 
Join Date: Jun 2009
should start a new thread ??
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum Display Enhancements GMT time on your forumpages LaCN vBulletin 3.6 Add-ons 11 31 Mar 2008 18:36



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:44.

Layout Options | Width: Wide Color: