|
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 orlocaltime (besides checking the installation (I remember a debconf entryand a cvs version dependancy)) ChristofI 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
[Prev in Thread] | Current Thread | [Next in Thread] |