Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 May 1999 02:28:46 +0900 (JST)
From:      nishio@nexus.rim.or.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11587: wmitime-0.3 ports problem 
Message-ID:  <199905071728.CAA19386@orbit.nexus.rim.or.jp>

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

>Number:         11587
>Category:       ports
>Synopsis:       inappropriate internet time calculation
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May  8 08:50:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Fumihiko Nishio
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
>Environment:

>Description:

Internet time is not calculated correctly.
The 'timezone' global variable does not exist in FreeBSD system,
so tm_gmtoff should be used.

>How-To-Repeat:


>Fix:
	
--- wmitime.c.orig      Sat May  8 01:58:45 1999
+++ wmitime.c   Sat May  8 02:10:14 1999
@@ -281,7 +281,7 @@
 
     // Compute Inet Time
     iTime=(clk->tm_hour*3600+clk->tm_min*60+clk->tm_sec);
-    iTime=iTime+((timezone-1)+3600);
+    iTime=iTime+((1-clk->tm_gmtoff)+3600);
     if (clk->tm_isdst)
         iTime-=3600;
     iTime=(iTime*1000)/86400;


>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?199905071728.CAA19386>