21 lines
647 B
Text
21 lines
647 B
Text
$NetBSD: patch-ag,v 1.2 2009/04/25 23:46:47 gdt Exp $
|
|
|
|
--- zooadd2.c.orig 1991-07-20 01:38:10.000000000 +0200
|
|
+++ zooadd2.c
|
|
@@ -258,12 +258,15 @@ void newdir (direntry)
|
|
register struct direntry *direntry;
|
|
{
|
|
#ifdef GETTZ
|
|
+ long mstonix();
|
|
long gettz();
|
|
+ long t;
|
|
#endif
|
|
direntry->zoo_tag = ZOO_TAG;
|
|
direntry->type = 2; /* type is now 2 */
|
|
#ifdef GETTZ
|
|
- direntry->tz = gettz() / (15 * 60); /* seconds => 15-min units */
|
|
+ t = mstonix (direntry->date, direntry->time);
|
|
+ direntry->tz = gettz(t) / (15 * 60); /* seconds => 15-min units */
|
|
#else
|
|
direntry->tz = NO_TZ; /* timezone unknown */
|
|
#endif
|