Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 May 2000 00:42:20 -0700 (PDT)
From:      ma@neko.net
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/18321: ports lang/eperl Y2K problem.
Message-ID:  <200005010742.AAA14627@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         18321
>Category:       ports
>Synopsis:       ports lang/eperl Y2K problem.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May  1 00:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     MAWATARI Ryota
>Release:        4.0-RELEASE
>Organization:
>Environment:
>Description:
Programs made from ports lang/eperl shows year 2000 as '19100'.

>How-To-Repeat:
. Install lang/eperl into apache web server.
. Enable ePerl in httpd.conf or apache.conf.
. Make a html document such as
  % cat > a.phtml
  <? print "$ENV{SCRIPT_SRC_MODIFIED_ISOTIME}\n"; !>
  ^D
. See the document through apache.

>Fix:
--- eperl_sys.c.original        Mon Jul 27 17:41:34 1998
+++ eperl_sys.c Mon May  1 15:07:34 2000
@@ -239,8 +239,8 @@
     char timestr[128];
 
     tm = localtime(t);
-    sprintf(timestr, "%02d-%02d-19%02d %02d:%02d",
-                      tm->tm_mday, tm->tm_mon+1, tm->tm_year,
+    sprintf(timestr, "%02d-%02d-%04d %02d:%02d",
+                      tm->tm_mday, tm->tm_mon+1, tm->tm_year+1900,
                       tm->tm_hour, tm->tm_min);
     return strdup(timestr);
 }


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005010742.AAA14627>