JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1616
|
Re: Prevent System Date BackWard
Well, you can't actually prevent it. Depending on the OS version, windows automatically synchronizes the time with timeservers. It allows this since a computer's time does fluctuate (it's not 100% accurate on all pcs, close, but it does get off). Not to mention when you have to deal with daylight savings times.
And if you think about it: how do you know what time it really is?
Unless you have a program run 100% of the time, keep track of time itself, comparing that time to the computers time, you wouldn't know if they changed it or not. But if they did, there may of been a reason.
If the time is that important to you for the database, don't rely on the PC's time entirely - require an internet connection and query a timeserver for the time. Then just use the timeserver's time for the database (well, with the time offset for the timezone).
[Edited by JLRodgers on 12-08-2007 at 12:05 PM GMT]
____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)
|