HI Dejan,
1. Create an offset - the difference between the server time and the Client's time at the beginning. (This to avoid repetitive work and the performance involved.
2. Then use this offset to find the server time everytime you want.. by using Clents TIme+OFFSET and obtain the DateTime value for server equivalent.
The method to get server time as said in (1) above can be..
Create a temporary file on server file, read the date and time of that file and make the difference with the client time.
FUNCTION ServerTime
LPARAMETERS vcServerPath
LOCAL LcFileName, LnHandle, ltReturn
LcFileName = ADDBS(vcServerPath) + SYS(2015) + ".TMP"
LnHandle = FCREATE(lcFileName, 0)
IF ADIR(laDir, lcFileName)>0
ltReturn = CTOT(DTOC(laDir[1.3] + " " + laDir[1,4]))
ENDIF
ERASE (lcFileName)
RETURN ltReturn
********************************************
3. I have heard about APIs such as RemoteTOD() for NT, but these get restricted by the OS and Server OS.
You can find API call RemoteTOD() in the MSDN Platform SDK. It is only applicable to NT, Win2K and Win XP client systems, and requires an NT or Win2K server as a target to implement.
I have not used and I dont remeber where I got this code from... Credit to the concerned person...
"
NetRemoteTOD
The NetRemoteTOD function returns the time of day information from a specified server.
Security Requirements
No special group membership is required to successfully execute the NetRemoteTOD function.
NET_API_STATUS NetRemoteTOD(
LPCWSTR UncServerName,
LPBYTE *BufferPtr
);
Parameters
UncServerName
[in] Pointer to a constant Unicode string specifying the name of the remote server on which the function is to execute. The string must begin with \\. If this parameter is NULL, the local computer is used.
BufferPtr
[out] Pointer to the address that receives the TIME_OF_DAY_INFO information structure. This buffer is allocated by the system and must be freed using the NetApiBufferFree function
" .....
The above is a copy from my tips database.
Hope this helps you solve your problem

ramani

(Subramanian.G),FoxAcc, ramani_g@yahoo.com