From sanewo@sanewo.ba2.so-net.or.jp  Sat Jun 14 07:15:49 1997
Received: from sanewo.ba2.so-net.or.jp (pppba22.pppp.ap.so-net.or.jp [210.132.186.34])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA24198
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Jun 1997 07:15:43 -0700 (PDT)
Received: (from sanewo@localhost) by sanewo.ba2.so-net.or.jp (8.8.5/8.7.3) id XAA01691; Sat, 14 Jun 1997 23:10:43 +0900 (JST)
Message-Id: <199706141410.XAA01691@sanewo.ba2.so-net.or.jp>
Date: Sat, 14 Jun 1997 23:10:43 +0900 (JST)
From: sanewo@ba2.so-net.or.jp
Reply-To: sanewo@ba2.so-net.or.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: rcs2log fails with eastern timezone
X-Send-Pr-Version: 3.2

>Number:         3866
>Category:       bin
>Synopsis:       rcs2log fails with eastern timezones
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 14 07:20:01 PDT 1997
>Closed-Date:    Thu Jul 13 03:56:56 PDT 2000
>Last-Modified:  Thu Jul 13 03:59:05 PDT 2000
>Originator:     Takanori Saneto
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
an individual
>Environment:

FreeBSD aurora 3.0-CURRENT FreeBSD 3.0-CURRENT #54: Fri Jun 13 03:06:54 JST 1997
	sanewo@aurora:/usr/src/sys/compile/AURORA  i386

>Description:

	If timezone of the system is east to the GMT, rcs2log fails.

	If rcs2log can't find ChangeLog file, instead of using timestamp of ChangeLog,
	it uses "1970-1-1", which is passed to "cvs log" command.
	Because there is no timezone in the string, it assumes local timezone.
	For GMT, time_t for 1970-1-1 0:0:0 is 0. For timezones east to GMT, the value
	converted to time_t becomes nagative, which causes error.
	
>How-To-Repeat:

	(in the CVS controlled directory where no ChageLog file)
	(and make sure that you are live in eastern country)
	% /usr/share/examples/cvs/rcs2log
	cvs [log aborted]: Can't parse date/time: 1970-1-1

>Fix:


--- rcs2log.sh.org	Sat Jun 14 22:48:29 1997
+++ rcs2log.sh	Sat Jun 14 22:48:52 1997
@@ -121,7 +121,7 @@
 # log the revisions checked in since the first ChangeLog entry.
 case $rlog_options in
 '')
-	date=1970-01-01
+	date='1970-01-01 GMT'
 	if test -s ChangeLog
 	then
 		# Add 1 to seconds to avoid duplicating most recent log.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nbm 
State-Changed-When: Thu Jul 13 03:56:56 PDT 2000 
State-Changed-Why:  
rcs2log no longer exhibits that behaviour with me, and seems to have 
been rewritten since this PR, and updated when cvs-1.10.7 was imported. 
Feel free to open another bug report if this behaviour continues. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=3866 
>Unformatted:
