aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-05-09 09:31:44 -0700
committerGuy Harris <guy@alum.mit.edu>2018-05-09 16:33:21 +0000
commite7d24c606cdb460e835f7d7553d7b82e1ee11eac (patch)
tree5f3c88b4e43fa32724e0c2547e402b0907ad38ee /editcap.c
parent517e353e7ffe6318afd304d9f4a49d5027d564fd (diff)
Always explicitly set tm_isdst before calling mktime().
Except in rare cases, we want to set it to -1 so that we let mktime() determine whether DST/Summer Time was in effect at the given date and time rather than pretending that we know whether it's in effect or not. Change-Id: I0ea75317dd308a515cedf4d1260b583e1592cc9b Reviewed-on: https://code.wireshark.org/review/27431 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/editcap.c b/editcap.c
index b9b980c034..e486756482 100644
--- a/editcap.c
+++ b/editcap.c
@@ -1308,6 +1308,7 @@ main(int argc, char *argv[])
stoptm.tm_year = 135;
stoptm.tm_mday = 31;
stoptm.tm_mon = 11;
+ stoptm.tm_isdst = -1;
stoptime = mktime(&stoptm);
}