Page 1 of 1

Date() - where does it get the date from?

Posted: Tue Nov 27, 2007 9:52 pm
by Seymour Clufley
I ask this because I'm currently making a security plugin and it is important that it gets the correct date - ie, one that can't be changed by the user.

This is because of the old trick of changing the system date to something earlier so that a time-limited program thinks it is still in its trial period.

Is there any way to get around this "trick"?

Posted: Tue Nov 27, 2007 10:12 pm
by Trond
one that can't be changed by the user
All dates can be changed by the user.

Posted: Tue Nov 27, 2007 10:23 pm
by Foz
Well, instead of date you can create your own internal "ticker", which is equivalent to 30 hours of usage (1 hour a day for 30 days), and as they use it, you knock off the ticker until you get to zero.

Re: Date() - where does it get the date from?

Posted: Fri Dec 14, 2007 8:50 am
by Tranquil
Seymour Clufley wrote:I ask this because I'm currently making a security plugin and it is important that it gets the correct date - ie, one that can't be changed by the user.

This is because of the old trick of changing the system date to something earlier so that a time-limited program thinks it is still in its trial period.

Is there any way to get around this "trick"?
If an internet connection is available you can get the actual time from a time server.