rcs wrong timestamp

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

rcs wrong timestamp

Ralf Schuelke
Hi BUG Team,
i think the programm rcs have a timestamp bug,
my local time is not set in the text version header kexwords like  $Id$

uname -a
OpenBSD mona 6.5 GENERIC.MP#0 i386

THX
Ralf Schuelke

here my senario:
#######start#######
mona$ date
Sat Jul 20 14:17:11 CEST 2019
mona$ mkdir BUGTEST
mona$ cd BUGTEST/
mona$ rcs -i test
RCS file: test,v
enter description, terminated with single '.' or end of file:
NOTE: This is NOT the log message!
>> .
done
mona$ ls
test,v
mona$ co -l test
test,v  -->  test
no revisions present; generating empty revision 0.0
no revisions, so nothing can be locked
done
mona$ ls
test   test,v
mona$ ls -l
total 8
-rw-r--r--  1 stargater  stargater   0 Jul 20 14:20 test
-r--r--r--  1 stargater  stargater  64 Jul 20 14:19 test,v
mona$ vi test
mona$ ls -l
total 16
-rw-r--r--  1 stargater  stargater  36 Jul 20 14:21 test
-r--r--r--  1 stargater  stargater  64 Jul 20 14:19 test,v
mona$ ci test
test,v  <--  test
initial revision: 1.1
done
mona$ co -u test
test,v  -->  test
revision 1.1 (unlocked)

done
mona$ cat test
#!/bin/sh


### $Id: test,v 1.1 2019/07/20 12:21:43 stargater Exp $


## code

mona$
#########end#########

dmesg_out (9K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: rcs wrong timestamp

Stuart Henderson
On 2019/07/20 14:54, Ralf Schuelke wrote:
> Hi BUG Team,
> i think the programm rcs have a timestamp bug,
> my local time is not set in the text version header kexwords like  $Id$

This is working correctly, these keyword expansions use UTC. There could
be many users working with the same files from differing timezones,
there's no other sane way to handle this.

Reply | Threaded
Open this post in threaded view
|

Re: rcs wrong timestamp

Ralf Schuelke
Okay, it s nice when the man rcs have this Info

Stuart Henderson <[hidden email]> schrieb am Sa., 20. Juli 2019, 15:10:

> On 2019/07/20 14:54, Ralf Schuelke wrote:
> > Hi BUG Team,
> > i think the programm rcs have a timestamp bug,
> > my local time is not set in the text version header kexwords like  $Id$
>
> This is working correctly, these keyword expansions use UTC. There could
> be many users working with the same files from differing timezones,
> there's no other sane way to handle this.
>
>
Reply | Threaded
Open this post in threaded view
|

Re: rcs wrong timestamp

Otto Moerbeek
In reply to this post by Stuart Henderson
On Sat, Jul 20, 2019 at 02:10:00PM +0100, Stuart Henderson wrote:

> On 2019/07/20 14:54, Ralf Schuelke wrote:
> > Hi BUG Team,
> > i think the programm rcs have a timestamp bug,
> > my local time is not set in the text version header kexwords like  $Id$
>
> This is working correctly, these keyword expansions use UTC. There could
> be many users working with the same files from differing timezones,
> there's no other sane way to handle this.
>

Plus it's documented to use UTC in rcs(1).

        -Otto