Version: 1.00, by Gary King
Developer Last Online: Jun 2020
Version: 3.0.0
Rating:
Released: 02-07-2004
Last Update: Never
Installs: 17
No support by the author.
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:
define('TIMENOW', time());
Replace with
PHP Code:
define('TIMENOW', time() + 360);
and change 360 to the number of seconds you want to be faster on the forums, or change the + to - to slow down the time on the forums
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
buro9 - the host might not want to change the time, or simply, not have the time.
Yeah that's what happens sometimes. For instance, you can't say that all hosts have good support etc. but some people still go with them because of reasonable prices, etc. I sometimes do that even when I don't need too much support, like on the server that I use this hack on
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.
Yeah that's what happens sometimes. For instance, you can't say that all hosts have good support etc. but some people still go with them because of reasonable prices, etc. I sometimes do that even when I don't need too much support, like on the server that I use this hack on
It works, it's simple, so what's the problem?
The problem is that if your server is off of the time now, it is going to continually be off time and you will always end up having to readjust the hack to keep the server on time. If your host is too busy to set the server time, then they aren't much of a host and not worth paying for.
The problem is that if your server is off of the time now, it is going to continually be off time and you will always end up having to readjust the hack to keep the server on time. If your host is too busy to set the server time, then they aren't much of a host and not worth paying for.
You don't have to re-adjust the time if the clock is going to the same speed as the actual world clock, but just off a few minutes; doesn't mean it is going at a different speed from the real world clock.
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.