Aswin.Muzaky
Aswin.Muzaky

Reputation: 3

Expired date not working when date changed

I tried to create a program with an expired date, but if the date on the computer is changed, the expired date does not work anymore. how to solve it ?
I made it using delphi

Upvotes: 0

Views: 228

Answers (1)

William Cross
William Cross

Reputation: 312

Need some more information to answer this effectively but it sounds like the issue occurs because the system is using the device's date/time/clock to determine the validity of dates.

The only way around this would be to hook into a webservice for an accurate date value that is then difficult to manipulate by changing the system clock.

There is another stackoverflow thread that addresses using internet time for these sorts of purposes:

Get internet time in delphi

I hope this helps!

Upvotes: 4

Related Questions