Subject: pkg/6687: plan-1.7.2 wont guess timezone correctly
To: None <gnats-bugs@gnats.netbsd.org>
From: Jarkko Torppa <torppa@tuhnu.cutery.fi>
List: netbsd-bugs
Date: 12/30/1998 03:34:05
>Number:         6687
>Category:       pkg
>Synopsis:       x11/plan/ wint guess timezone correctly
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    packages (NetBSD software packages team)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 29 17:50:01 1998
>Last-Modified:
>Originator:     Jarkko Torppa
>Organization:
 insomaniacs
>Release:        1.3.2
>Environment:
	
System: NetBSD tuhnu.cute.fi 1.3.2 NetBSD 1.3.2 (TUHNU) #0: Fri Sep 11 21:36:38 EEST 1998 torppa@walrus.megabaud.fi:/usr/src/sys/arch/i386/compile/TUHNU i386


>Description:
Plan tries first to guess timezone from TZ, after that it fallsback to
systemroutines. We need to add one define to get the correct behaviour

>How-To-Repeat:
start plan when there is no TZ or PLAN_TZ in environment.
open Configure->Adjust Time
clear what there is in that panel
Press guess
>Fix:
put this in patches/patch-ab

$NetBSD$
--- time.c.orig	Wed Dec 30 03:02:03 1998
+++ time.c	Wed Dec 30 03:02:22 1998
@@ -232,7 +232,7 @@
 		dst  = zone - 3600;
 		dst  = 0;	/* jmorriso@bogomips.ee.ubc.ca 28.8.94 */
 #else
-#if defined(bsdi) || defined(SUN) || defined(SVR4) || defined(convex)
+#if defined(bsdi) || defined(SUN) || defined(SVR4) || defined(convex) || defined(__NetBSD__)
 		time_t now;
 		struct tm *tm;
 		tzset();

>Audit-Trail:
>Unformatted: