Discussion:
[rancid] cvs time in UTC
Ignacio Freyre
2016-02-03 16:36:23 UTC
Permalink
Hi, i noticed cvs stores time info in UTC time. Is there a way to change to the system time which uses gmt?
In this example the actual system time was 9:41:39, but cvs stored the time as 12:41:39, i got the email with the diff but the time is wrong.




cvs diff -u -4 -r1.15 configs/test-router

Index: configs/test-router
===================================================================
RCS file: /var/lib/rancid/CVS/prueba/configs/test-router,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -4 -r1.15 -r1.16
--- configs/test-router 3 Feb 2016 12:41:39 -0000 1.15
+++ configs/test-router 3 Feb 2016 14:51:59 -0000 1.16







under CVS root:

1.16
date 2016.02.03.14.51.59; author rancid; state Exp;
branches;
next 1.15;
commitid 10056B2140F607F79E7;
Ignacio Freyre
2016-02-03 17:28:24 UTC
Permalink
the system time is fine, i'm using UTC-3 or GMT-3.
What i meant is that cvs is using UTC-0, but the system time is UTC-3.


----- Mensaje original -----

De: "Aaron Dudek" <***@gmail.com>
Para: "Ignacio Freyre" <***@vera.com.uy>
CC: rancid-***@shrubbery.net
Enviados: Miércoles, 3 de Febrero 2016 14:17:24
Asunto: Re: [rancid] cvs time in UTC

Why do you have a three hour difference?
I think that is the bigger question,

On Wednesday, February 3, 2016, Ignacio Freyre < ***@vera.com.uy > wrote:



Hi, i noticed cvs stores time info in UTC time. Is there a way to change to the system time which uses gmt?
In this example the actual system time was 9:41:39, but cvs stored the time as 12:41:39, i got the email with the diff but the time is wrong.




cvs diff -u -4 -r1.15 configs/test-router

Index: configs/test-router
===================================================================
RCS file: /var/lib/rancid/CVS/prueba/configs/test-router,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -4 -r1.15 -r1.16
--- configs/test-router 3 Feb 2016 12:41:39 -0000 1.15
+++ configs/test-router 3 Feb 2016 14:51:59 -0000 1.16







under CVS root:

1.16
date 2016.02.03.14.51.59; author rancid; state Exp;
branches;
next 1.15;
commitid 10056B2140F607F79E7;
heasley
2016-02-03 17:29:26 UTC
Permalink
Post by Ignacio Freyre
Hi, i noticed cvs stores time info in UTC time. Is there a way to change to the system time which uses gmt?
In this example the actual system time was 9:41:39, but cvs stored the time as 12:41:39, i got the email with the diff but the time is wrong.
It uses the system timezone by default. you can change the global system
timezone (do not ask this list how to do that) or in your rancid.conf
and/or shell dot files often by setting the TZ environment variable (again,
do not ask here about how to do that - google or ask a list associated with
your O/S).
Ignacio Freyre
2016-02-03 19:09:33 UTC
Permalink
Hi heasley, the timezone is configured properly.
Still, rancid logs show the correct time, but cvs doesn't.
I have configured the TZ environment variable but that didn't change anything.


Rancid log from running 'rancid-run': starting: Wed Feb 3 16:05:55 UYT 2016
CVS root:
1.22
date 2016.02.03.19.06.01; author rancid; state Exp;
branches;
next 1.21;
commitid 10056B24F996FB6D309;


***@bckp-server:~$ timedatectl
Local time: Wed 2016-02-03 15:34:16 UYT
Universal time: Wed 2016-02-03 18:34:16 UTC
Timezone: America/Montevideo (UYT, -0300)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a


----- Mensaje original -----
De: "heasley" <***@shrubbery.net>
Para: "Ignacio Freyre" <***@vera.com.uy>
CC: rancid-***@shrubbery.net
Enviados: Miércoles, 3 de Febrero 2016 14:29:26
Asunto: Re: [rancid] cvs time in UTC
Post by Ignacio Freyre
Hi, i noticed cvs stores time info in UTC time. Is there a way to change to the system time which uses gmt?
In this example the actual system time was 9:41:39, but cvs stored the time as 12:41:39, i got the email with the diff but the time is wrong.
It uses the system timezone by default. you can change the global system
timezone (do not ask this list how to do that) or in your rancid.conf
and/or shell dot files often by setting the TZ environment variable (again,
do not ask here about how to do that - google or ask a list associated with
your O/S).
heasley
2016-02-03 21:21:23 UTC
Permalink
Post by Ignacio Freyre
Hi heasley, the timezone is configured properly.
Still, rancid logs show the correct time, but cvs doesn't.
I have configured the TZ environment variable but that didn't change anything.
Rancid log from running 'rancid-run': starting: Wed Feb 3 16:05:55 UYT 2016
1.22
date 2016.02.03.19.06.01; author rancid; state Exp;
branches;
next 1.21;
commitid 10056B24F996FB6D309;
i've confused this with svn. cvs does not do tz translation except for
the history command, afaict from the cvs manpage.
Post by Ignacio Freyre
Local time: Wed 2016-02-03 15:34:16 UYT
Universal time: Wed 2016-02-03 18:34:16 UTC
Timezone: America/Montevideo (UYT, -0300)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
----- Mensaje original -----
Enviados: Miércoles, 3 de Febrero 2016 14:29:26
Asunto: Re: [rancid] cvs time in UTC
Post by Ignacio Freyre
Hi, i noticed cvs stores time info in UTC time. Is there a way to change to the system time which uses gmt?
In this example the actual system time was 9:41:39, but cvs stored the time as 12:41:39, i got the email with the diff but the time is wrong.
It uses the system timezone by default. you can change the global system
timezone (do not ask this list how to do that) or in your rancid.conf
and/or shell dot files often by setting the TZ environment variable (again,
do not ask here about how to do that - google or ask a list associated with
your O/S).
Loading...