Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare datetime() of each computer
Message
From
17/06/2021 02:16:47
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
15/06/2021 15:05:31
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01681219
Message ID:
01681279
Views:
48
>in the LAN environment, is there a way to know the server's datetime()?
>
>My client has an issue, the operator changes the clock so he can enter old invoices.
>My client want to each time the cashiers login, the program will compare the datetime() with the server's datetime()
>
>Thanks for the help
>
>Regards,
>
>Jerry Yang

Instead of using local server, try a web based timeserver. In it's simplest form there might be some Offfset, but this might be no problem on your setting.
An other simpler solution might be to check timestamps on your tables - if something is newer then actual datetime - oops

Anyway the setup is bad, a user - operator - should never own the right to change Date / Time at all. It sounds like he runs as admin - what is known as idiotic for decades. At least I must swap to my admin account to do change something.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform