From owner-freebsd-ports Sat May 8 8:50:10 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5317915572 for ; Sat, 8 May 1999 08:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA92133; Sat, 8 May 1999 08:50:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from ns11.rim.or.jp (ns11.rim.or.jp [202.247.130.230]) by hub.freebsd.org (Postfix) with ESMTP id 9A5051535B for ; Sat, 8 May 1999 08:46:32 -0700 (PDT) (envelope-from nishio@nexus.rim.or.jp) Received: from rayearth.rim.or.jp (rayearth.rim.or.jp [202.247.130.242]) by ns11.rim.or.jp (8.8.8/3.5Wpl2-ns11/RIMNET-2) with ESMTP id AAA00140 for ; Sun, 9 May 1999 00:46:23 +0900 (JST) Received: (from uucp@localhost) by rayearth.rim.or.jp (8.8.8/3.5Wpl2-uucp1/RIMNET) with UUCP id AAA08462 for FreeBSD-gnats-submit@freebsd.org; Sun, 9 May 1999 00:46:23 +0900 (JST) Received: (from nishio@localhost) by orbit.nexus.rim.or.jp (8.9.2/3.5W) id CAA19386; Sat, 8 May 1999 02:28:46 +0900 (JST) Message-Id: <199905071728.CAA19386@orbit.nexus.rim.or.jp> Date: Sat, 8 May 1999 02:28:46 +0900 (JST) From: nishio@nexus.rim.or.jp Reply-To: nishio@nexus.rim.or.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/11587: wmitime-0.3 ports problem Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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