vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - World Time Zones (https://vborg.vbsupport.ru/showthread.php?t=94505)

Boofo 09-27-2005 01:39 PM

This is in the process of being totally rewritten so it should be accurate everywhere no matter hwat the DST settings are. Right now it is based off of the viewer's DST setting.

Sanjiyan 10-03-2005 03:51 PM

installed this, but I cant find any link to the worldtime.php file in quick links or nothing, where does it put the link or do I have to make the link manually ?

poolking 10-03-2005 04:36 PM

Quote:

Originally Posted by Sanjiyan
installed this, but I cant find any link to the worldtime.php file in quick links or nothing, where does it put the link or do I have to make the link manually ?

You have to make the link yourself.

Sanjiyan 10-06-2005 09:21 PM

All the time zones for me are two hours ahead of the actual time zones, any ideas why? its not a timezone issue with the user cp settings.

Boofo 10-06-2005 11:31 PM

Quote:

Originally Posted by Sanjiyan
All the time zones for me are two hours ahead of the actual time zones, any ideas why? its not a timezone issue with the user cp settings.

Check this post out. I think it will solve your problem. ;)

https://vborg.vbsupport.ru/showpost....8&postcount=29

Magma 10-07-2005 12:00 AM

working :D thanks

mtha 10-07-2005 12:13 AM

Quote:

Originally Posted by Boofo
In this line:

PHP Code:

 $servertime = ($vbulletin->options['timeoffset'] - ($timediff+2)); //Server is on GMT time 

change the:

PHP Code:

 +

to reflect your own server time. It is set at GMT by default. So, if you are 14 hours ahead of GMT, then it would have to be changed to +16. ;)


I just wonder WHY you dont add this into installation instruction?

people need to check, or edit it before uploading, or you should head that off from $vbulletin->options[timeoffset]

using this, you wont need to worry about that editing

$servertime = ($timeoffset - ($timediff+ $vbulletin->options[timeoffset])); //Server is on GMT time


Boofo 10-07-2005 12:18 AM

Ok, fine! You caught me, I'm lazy, ok? Are you happy now? Everyone knows now. And here I thought I would actually get away with this. Damn! ;)

Lea Verou 10-07-2005 01:07 AM

Wow, looks nice but is it fully phrased?

Boofo 10-07-2005 01:47 AM

Quote:

Originally Posted by Loukrhtia
Wow, looks nice but is it fully phrased?

Nope, not yet, but the updated and brand spanking new, unbelievable and fantastic version will be. Reserve your seat now and be prepared to be amazed! ;)

Lea Verou 10-07-2005 01:49 AM

Quote:

Originally Posted by Boofo
Nope, not yet, but the updated and brand spanking new, unbelievable and fantastic version will be. Reserve your seat now and be prepared to be amazed! ;)

Ok, I'll reserve a seat! :D

[high]* Lea Verou clicks install to reserve a seat :p :p :p[/high]

steve1386 10-07-2005 01:15 PM

Thanks mate **INSTALLED**I await the brand new spanking version :surprised:

SpaceStar 10-08-2005 09:00 PM

:( have installed it - but it isn't showing up ... did I do anything wrong???

Boofo 10-08-2005 11:32 PM

Quote:

Originally Posted by mtha
I just wonder WHY you dont add this into installation instruction?

people need to check, or edit it before uploading, or you should head that off from $vbulletin->options[timeoffset]

using this, you wont need to worry about that editing

$servertime = ($timeoffset - ($timediff+ $vbulletin->options[timeoffset])); //Server is on GMT time

I just tried your line and it makes it 2 hours behind for me (hence, the reason I added the +2 when testing it). ;)

We are working on a whole new setup for this that will require NO editing of any kind and it will show a lot more timezones and areas. There is a lot of information to enter so that is why it is taking longer than we had hoped for. ;)

Boofo 10-08-2005 11:32 PM

Quote:

Originally Posted by SpaceStar
:( have installed it - but it isn't showing up ... did I do anything wrong???

Did you make the link to the worldtimes.php file?

WNxWakko 10-09-2005 12:08 AM

I thought I would share this modified .php file for this worldtime mod. It has been modified to synch to your VB timezones rather then it being a stand alone to configure. After to much frustration in the worldtime not being the same as the vb times, some complaining, having to explain how to correct. Got fed up.

So you can use this modded worldtimes.php just overright your old.

I also have thousands of members on my board worldwide, so Ive fixed several that were incorrect. This modified file also understands a few areas that dont follow daylight savings and would not change their clock.

Boofo 10-09-2005 12:47 AM

Quote:

Originally Posted by WNxWakko
I thought I would share this modified .php file for this worldtime mod. It has been modified to synch to your VB timezones rather then it being a stand alone to configure. After to much frustration in the worldtime not being the same as the vb times, some complaining, having to explain how to correct. Got fed up.

So you can use this modded worldtimes.php just overright your old.

I also have thousands of members on my board worldwide, so Ive fixed several that were incorrect. This modified file also understands a few areas that dont follow daylight savings and would not change their clock.

Thanks. ;)

What do you mean some that were incorrect?

WNxWakko 10-09-2005 12:53 AM

Some of the countries were in the wrong zones. I have a member in Austrailia and she corrected all of those cities in Aus.

Boofo 10-09-2005 01:17 AM

Quote:

Originally Posted by WNxWakko
Some of the countries were in the wrong zones. I have a member in Austrailia and she corrected all of those cities in Aus.

Also, Some cities in Arizona here in the states doesn't recognize DST. I'm not sure which ones, though.

EDIT: I just noticed she has that in there. Ignore this post. ;)

Boofo 10-09-2005 01:20 AM

Also, with your file, my time is showing behind an hour. ;)

WNxWakko 10-09-2005 01:30 AM

the entire state of AZ does not follow daylight savings. As far as being an hour behind, I had to toggle my DST Correction Option. After this modification, everyone was able to set clocks correct and it seems my members have no more problems with it anymore.

I wont claim its perfect, but its way closer to being correct than before.

Boofo 10-09-2005 01:45 AM

Quote:

Originally Posted by WNxWakko
the entire state of AZ does not follow daylight savings. As far as being an hour behind, I had to toggle my DST Correction Option. After this modification, everyone was able to set clocks correct and it seems my members have no more problems with it anymore.

I wont claim its perfect, but its way closer to being correct than before.

What do you mean toggle it?

You commented out this line which would fix the DST is it was enabled in your User CP settings. ;)

//servertime++;

WNxWakko 10-09-2005 01:51 AM

im sorry, i was confused. I was toggling that before this was modded. Im not sure why you are an hour different. Ive polled over 50 members worldwide and they all stated it was correct for them. Perhaps your board settings are not lining up with the timezone your server is in.

My server is set on eastern, my board is set on eastern. My DST is set to Automatic in the pacific timezone even though im in arizona however its lining up all correct for me and other members.

I know when I installed your original me and many other members were an hour off. So now we are correct and your an hour off. Im not sure.

Boofo 10-09-2005 01:59 AM

Well, when I enable that line, it makes it 2 hours off then. That is why I had to add the +2 to the timediff in the original file. I re-added that and all is well now. ;)

My server is set at GMT and so is the setting in the Admin CP.

Aren't there ay cities in the +5 timezone anywhere? I noticed there aren't any listed there with the changes she made.

I will run this a few days and check it out and let you know what I find out. ;)

Also, just for yucks, try setting DST to always off in your Admin CP (since it is for you) and see what happens.

WNxWakko 10-09-2005 02:12 AM

I toggled the daylight savings in my admin cp and it didnt change anything. I dont know if any cities are in +5. Mainly she stated that alot of Australia doesnt follow DST. Im sure their is +5 cities but I dont know any.

Ultimatly unless you basically rewrite this to follow UTC completly I dont think there will be a perfect fix for this. Mostly everyone will have to tweak it to make it work on their servers.

Boofo 10-09-2005 06:17 AM

Quote:

Originally Posted by WNxWakko
I toggled the daylight savings in my admin cp and it didnt change anything. I dont know if any cities are in +5. Mainly she stated that alot of Australia doesnt follow DST. Im sure their is +5 cities but I dont know any.

Ultimatly unless you basically rewrite this to follow UTC completly I dont think there will be a perfect fix for this. Mostly everyone will have to tweak it to make it work on their servers.

The rewrite is being done to follow UTC. It's pretty extensive. ;)

PVTRoger 10-17-2005 09:56 PM

I did everything in the instructions (by the way,the instructions were clear and easy to follow), but where am I suppose to be seeing this, as it's not jumping out at me.

poolking 10-17-2005 11:08 PM

Quote:

Originally Posted by PVTRoger
I did everything in the instructions (by the way,the instructions were clear and easy to follow), but where am I suppose to be seeing this, as it's not jumping out at me.

You have to create a link to worldtimes page.

PVTRoger 10-18-2005 07:43 AM

Quote:

Originally Posted by poolking
You have to create a link to worldtimes page.

Did I miss that in the instructions? What is the URL of the link, or did I miss that as well.

BTW, remember when I said the instructions were clear and easy to follow. Scratch that. :ermm:

poolking 10-18-2005 12:34 PM

Quote:

Originally Posted by PVTRoger
Did I miss that in the instructions? What is the URL of the link, or did I miss that as well.

BTW, remember when I said the instructions were clear and easy to follow. Scratch that. :ermm:

No you didn't because it wasn't included in the instructions when I installed it.

Boofo 10-18-2005 12:44 PM

I thought it would be a given, but I guess I was wrong. Will fix it in the first post when I get back.

silurius 11-02-2005 08:59 PM

My personal time zone (Pacific) is showing up correctly both in vBulletin and in worldtimes.php, but New Zealand is showing up incorrectly by -2 hours for a NZ user.

The user who reported this has his own zone set (correctly I think) to GMT +12, and the worldtimes.php has this region set to '12'. Also I originally had to set $timediff to +8 to get my own time to show up correctly.

Any ideas?

Boofo 11-02-2005 09:20 PM

Isn't New Zealand supposed to be GMT +14?

Ramsesx 12-11-2005 04:48 AM

Thanks for the hack Boofo and thanks WNxWakko with that it's now showing the right time :)
One question only, how can I change the days and time phrases (monday etc.)?
Thanks

Kihon Kata 12-11-2005 06:48 AM

Quote:

Originally Posted by plateau
哦,很不错!!!

oh, it is very nice!!! will install it!!!

INstalled! Except, why would the images work on all my styles, but one?

Boofo 12-11-2005 07:24 AM

Quote:

Originally Posted by TonysDesigns
INstalled! Except, why would the images work on all my styles, but one?

You got me on that one. ;)

Don't forget the install button, sir. ;)

Kihon Kata 12-11-2005 01:58 PM

Quote:

Originally Posted by Boofo
You got me on that one. ;)

Don't forget the install button, sir. ;)

wow, I got boofo....

Chadi 12-12-2005 05:45 PM

Every time I click the world time zone link to view it, it logs me out. How do I fix this bug?

Chadi 12-12-2005 05:47 PM

By the way, it also shows incorrect time. I could not find any area to modify this. My actual profile and vbulletin is setup correctly otherwise.

Boofo 12-12-2005 07:50 PM

Quote:

Originally Posted by chadi
By the way, it also shows incorrect time. I could not find any area to modify this. My actual profile and vbulletin is setup correctly otherwise.

You need to change the +2 for the server time to reflect your actual server time. The +2 is for GMT time.

If you are getting logged out, you need to recheck your link. There's no way this can log you out. You have something else going on somewhere.


All times are GMT. The time now is 04:17 AM.

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.01354 seconds
  • Memory Usage 1,830KB
  • 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
  • (2)bbcode_php_printable
  • (18)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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