[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: API call to retrieve server timestamp / timestamps as offsets?

From: John Peacock <jpeacock_at_rowman.com>
Date: 2006-11-01 16:17:39 CET

Nik Clayton wrote:
> my $current_time = time(); # Seconds since epoch, in UTC

This is your problem. If I'm correct in thinking you are using HTTP as a
transport, parse the server generated Date header and use that as your
current_time (parsed to seconds since epoch).

> I know, and agree, that this is a configuration problem on the client.
> I'm suggesting that client applications could work around this problem
> with a little help from Subversion. Perhaps with an API call, something
> like:
>
> my $current_time = SVN::Client::get_time_on_server();

Yes, but that time is wrong one second later... ;-)

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Blvd
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 1 16:17:49 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.