monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] cvs_import and timezones


From: Tony Tung
Subject: Re: [Monotone-devel] cvs_import and timezones
Date: Mon, 2 Oct 2006 15:49:41 -0700

On Oct 2, 2006, at 9:46 AM, Tony Tung wrote:

On Oct 2, 2006, at 4:18 AM, Christof Petig wrote:

Tony Tung schrieb:
Is there some secret incantation to tell monotone to treat CVS
timestamps as GMT?  Or am I totally off base?

TZ=UTC monotone ... ?

yes this sucks. There is no way to tell whether CVS uses GMT or
localtime (besides checking the installation (I remember a debconf entry
and a cvs version dependancy))

   Christof

I already tried that, but got the same results.

Thanks,
Tony

It seems tzset() is never called. Without that, the environment variable TZ is never processed. I put it in cvs_commit::cvs_commit (rcs_file const & r, string const & rcs_version, file_id const & ident, cvs_history & cvs) just to test it, and it behaves correctly.

Since we don't want to actually do that every single time cvs_commit (...) is called, where would be a good place to call tzset()?

Thanks,
Tony





reply via email to

[Prev in Thread] Current Thread [Next in Thread]