Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting System Date and Time Programitically
Message
From
20/12/2017 14:05:14
 
 
To
20/12/2017 13:50:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01656542
Message ID:
01656598
Views:
52
>>>>>>Hi, anybody having the idea to change the system Date and Time from inside a VFP code as specified in my Variable, and Later reset that to the current time based on time.windows.com server after the process is complete.
>>>>>
>>>>>Frankly, that sounds like a terrible idea. Changing the system date and time can have effects on other applications, such as causing notifications to fire.
>>>>>
>>>>>What are you actually trying to do?
>>>>>
>>>>>Tamar
>>>>
>>>>I have been asked to sign the documents on the date of issue of invoice which is different in different invoices. so hv taken the invoce date in a variable and trying. Is there could be another way to do so.
>>>
>>>Do you mean that you want to change the date and time of the file, the one you see in file explorer?
>>
>>No. I want to change the system Clock Date.
>>
>>Actually Invoices are issued on a Particular Date say 01.12.2017. The software which create those invoices creates output in a format that does not support digital signatures on it. Now as per new Taxation Law in our country, its is mandatory to have Digital sign on the invoices being issued to customers. So we have to send Digitally signed invoices to them. As the Date of Invoice is 01.12.2017 we need to sign it in 01.12.2017 only.
>>Company is working for the permanent solution towards it, but it will take time. Meanwhile the solution was to change the Format that supports Digital Sign and sign the it on 2-3 days back and sign the document.
>>
>>The Digital Singing Softwares take the system Date as Date of Signing..
>>
>>Since there are Invoice Issue Date wise Folder , I have taken the names of these folders it in a variables and trying was thinking to change the system Date just 2-3 Back Programitically. As changing System Date for Each folder is a cumbersome job so was Thinking that way.
>
>I have some doubt that that your idea will work. Have you tried to perform the task manually to make sure that your idea will actually work?
>1. change system date & time
>2. apply digital signature to document
>3. restore system date & time
>4. check validity of digital signature (and if timestamp information is encoded, check to see if it matches the altered system date and time)

Yes i have checked. It works fine even though the system date is altered a few days back as I am signing taking the Times of the local Machine.
Harsh
Previous
Reply
Map
View

Click here to load this message in the networking platform