From c0baecc0bb3f654f6be54510f77980aa3501bdd5 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 10 Oct 2002 21:47:12 +0000 Subject: "tm_isdst" must be set to -1 before "mktime()" is called, so that "mktime()" bases the DST-vs-non-DST decision on the date/time and on the current time zone. svn path=/trunk/; revision=6406 --- wiretap/vms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wiretap/vms.c') diff --git a/wiretap/vms.c b/wiretap/vms.c index adedf36ead..70bae323ff 100644 --- a/wiretap/vms.c +++ b/wiretap/vms.c @@ -1,6 +1,6 @@ /* vms.c * - * $Id: vms.c,v 1.14 2002/08/28 20:30:45 jmayer Exp $ + * $Id: vms.c,v 1.15 2002/10/10 21:47:12 guy Exp $ * * Wiretap Library * Copyright (c) 2001 by Marc Milgram @@ -315,7 +315,6 @@ parse_vms_rec_hdr(wtap *wth, FILE_T fh, int *err) time.tm_min = 1; time.tm_sec = 1; - /* Skip lines until one starts with a hex number */ do { if (file_gets(line, VMS_LINE_LENGTH, fh) == NULL) { @@ -362,6 +361,7 @@ parse_vms_rec_hdr(wtap *wth, FILE_T fh, int *err) time.tm_mon = (p - months) / 3; time.tm_year -= 1900; + time.tm_isdst = -1; wth->phdr.ts.tv_sec = mktime(&time); wth->phdr.ts.tv_usec = csec * 10000; -- cgit v1.2.3