diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-10-10 21:47:12 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-10-10 21:47:12 +0000 |
commit | c0baecc0bb3f654f6be54510f77980aa3501bdd5 (patch) | |
tree | 3a8445f6c35d55217f5d3e39dba9215cbb588143 /wiretap/vms.c | |
parent | ccab7497b217103ee0e502c89b976ee82aab40a8 (diff) |
"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
Diffstat (limited to 'wiretap/vms.c')
-rw-r--r-- | wiretap/vms.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <mmilgram@arrayinc.com> @@ -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; |