![]() |
Time Offset
Can anyone please tell me how to set the timezoneoffset for the following lines of code? I have tried to figure it out with no success. :(
PHP Code:
|
$time_lastup+=($bbuserinfo['timezoneoffset']-$timeoffset)*3600
|
Thank you, sir. ;)
So it should look like this when I am done, right? PHP Code:
Quote:
|
no, put the code i gave you in a new line after the first line
|
Like this?
PHP Code:
|
of course there have to be a ; ;)
and yes this should be correct now |
That's for JR's weather hack. :) Does it work Boofo?
|
For some reason, it isn't working quite right. It changes the time OK, but now instead of being at the server time, it is 6 hours behind the server now. The server is set at GMT and my timeoffset is at -6. The weather time is showing up 12 hours behind me now instead of 6 hours behind like before. Any ideas on this one, buddy? :)
|
hmm, try to replace all + with an - and all - with an +
|
Here's the code with the changes you suggested.
PHP Code:
Quote:
|
All times are GMT. The time now is 06:31 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|