![]() |
Forum time offset (for servers with time that is a few minutes off etc.)
I created this for myself, but I figured others might benefit from this as well :)
What this hack does, is makes the forum time the 'right' time by offset-ting the time a few minutes ahead or a few minutes behind than the original server time. For instance, my server is about 6 minutes behind, so I would use 360 to define the number of seconds of offset. All you have to do, is open up includes/init.php and find: PHP Code:
PHP Code:
|
very nice! mine is 23 minutes off ;)
[high]* MGM clicks Install [/high] MGM out |
Quote:
I'm with ventures online, and every VPS account I've had has been out... I just ask them to create a cron to run weekly and update the time against an Internet time server... and they've always done it straight away. Afterall... the time on the system is part of their remit and not yours. Not trying to diss the hack... may be very useful for some... but if the root cause is with your host... then get them to fix it. Can't help but think that if their servers are out, they'll continue to slip further out and you'll have to change your hack value all the time. |
This will come in handy.
buro9 - the host might not want to change the time, or simply, not have the time. |
Simple, but works!
|
Quote:
It works, it's simple, so what's the problem? ;) |
Quote:
Also, some of us don't want to bother the server admin too often.. Especially for such small things as changing the time by a few minutes. This mod does the job perfectly. |
Quote:
|
Quote:
For instance my in case, the host just set the time wrong; but then just one installation of this hack and I don't have to worry about it ever again :) Anyways why does it matter about this I don't know why I'm even explaining this hack this much ;) If you don't want to install it, no one is forcing you to :) |
What about creating a vB-Cronjob that compares local time to a time server and stores the adjust-value in the settings-table?
This way you would not have to adjust the value manually - no PC clock never-ever goes 100% correct. Anyway, this is a hosts issue and it should be their responsibility to keep the time correct, as this is a vital server function. |
All times are GMT. The time now is 08:42 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:
|