Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date & Time for auditing
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00625648
Message ID:
00625842
Views:
11
Hi Bret and Hilmar,

One little note here that may or may not help based on your original problem with the workstations not having the same time as the server: If your version of novell is 4.x or higher, AND you use the novell client, the client pc's clock is updated to the server's clock UNLESS the admininstrator has configured it not to. To ensure that the workstation clock is updated by the server whenever the workstation logs in:

1. Change time zone information inside Windows on the workstation to reflect the correct time zone (you could pick Arizona time if you do not want adjustment for DST as it does not adjust for daylight savings).

2. Right click on the red N in the system tray | Client Properties | Advanced Settings | Set Station Time = ON

NOTE: When the workstation logs in, the client synchronizes its time with the srever. It does this by taking the server's time in Greenwich Mean Time, and adjusting by the windows time zone setting.

Tracy


>>>>My auditing functions report who made what changes, and when. The problem is, they currently use the date & time from the users' machine - and in some cases, this is way off.
>>>>
>>>>Does anyone have experience how to solve this, without checking each and every machine every day? Might be some centralized solution, like getting the datetime from the server, and either use that for auditing, or holler if it doesn't match the datetime on the local machine close enough.
>>>>
>>>>Hilmar.
>>>
>>>What I do in my application is the Data/Time from the server is our base. Now what if the server clock is messed up, well that is another problem, but not as big a problem as how many PC clocks dont agree.
>>
>>Thanks.
>>
>>Can you show me how to get the time for the server? Some API function, I assume.
>>
>>Hilmar.
>
>You could go with a simple method:
>
>
>* First lets get a synq date time from the novell sever</font>
>* as the users computer may have there clock off</font>
>lcMyServerFile = oData.Code40SysDir+"\TEMP\"+SUBSTR(sys(2015),3,8)+'.CLK'
>handle=fcreate(lcMyServerFile)
>=fclose(handle)
>lcDate = fdate(lcMyServerFile)
>lcTime = ftime(lcMyServerFile)
>erase (lcMyServerFile)
>
>
>Or you cold go with a more complex solution found in FAQ 617
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform