summaryrefslogtreecommitdiff
path: root/archivers/zoo/patches/patch-ad
blob: 1220a4e78248ba72422e8aa7e32b65a6424638bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ad,v 1.1 1999/11/12 05:17:21 hubertf Exp $

--- ./misc2.c	Tue Jul 16 17:53:02 1991
+++ /usr/pkgsrc/archivers/zoo/work.i386.unpatched/misc2.c	Fri Nov 12 06:19:38 1999
@@ -314,10 +314,12 @@
 {
 	long diff_tz;
 	long longtime;
+	long t;
 	if (direntry->tz == NO_TZ)		/* none stored */
 		return;
-	diff_tz = (long) direntry->tz * (3600/4) - gettz(); /* diff. in seconds */
-	longtime = mstonix (direntry->date, direntry->time) + diff_tz; /* adj tz */
+	t = mstonix (direntry->date, direntry->time);
+	diff_tz = (long) direntry->tz * (3600/4) - gettz(t); /* diff. in seconds */
+	longtime = t + diff_tz; /* adj tz */
 	mstime (longtime, &direntry->date, &direntry->time);
 }
 #endif /* GETTZ */