>>Does anyone know if/how I can change the datetime in my Visual Foxpro-application ?
>>
>>After starting our application, in some occasions, i must be able to set the date a year ahead without changing the Windows datetime.
>>So when i call the Date(), Time() or DateTime()-function I must get a later date returned...
>
>
>You can run your application under VM and change whatever you want w/o affecting other applications or Windows itself..
Modern Windows OSs will, by default, periodically attempt to synchronize their time to time.windows.com. VMs are no different. To maintain a datetime a year ahead would mean disabling synchronization, or disconnecting the computer from the public Internet so synchronization attempts fail.
Lack of accurate/synchronized time can make some Windows services fail e.g. Kerberos.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up