info-cvs
[Top][All Lists]
Advanced

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

Re: cvs log and UTC


From: Derek Robert Price
Subject: Re: cvs log and UTC
Date: Wed, 24 Mar 2004 15:56:18 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Larry Jones wrote:

>>I have been asked to "fix" this by my boss: cvs log returns the
>>timestamp of the file in Coordinated Univeral Time.  All other ways of
>>looking at the timestamp return it in local time.  Is there any quick,
>>elegant way to get cvs log to display the date in local time? (I think I
>>know the answer.) Thanks.
>
>
>No, CVS always displays times in UTC.  Because of the complexities of
>client/server mode, a lot of infrastructure would be required to support
>local time display and no one has felt compelled to do the work.


I wouldn't call a new MT tag "a lot of infrastructure".  The
implementation should be fairly straightforward and simple, I should think.

For you to use the "MT" command, there is at least one example in the
WriteLetter() function in update.c, but you should be able to find
others by grepping the source for "MT".  The handle_mt() function in
client.c would be the place where the new "datetime" tag and its text
would need to be converted into a local time.  Other than that the only
necessary change should be to avoid printing the whole line containing
the time in src/log.c, or maybe src/rcs.c, and break the line up into a
series of MT commands.

Derek

- --
                *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQFAYfXxLD1OTBfyMaQRAoZwAJ9fa1XhMa4bWR3TJ9BHuC7j/uAShACgxUnO
cx1BcJCMn/gmCJNqoNOGe4M=
=c2qe
-----END PGP SIGNATURE-----






reply via email to

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