diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-11-11 17:40:32 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-11-11 17:40:32 +0000 |
commit | 11055712cee32b45d7dc268b383b60c42a1a03d4 (patch) | |
tree | 9faab30ee6de2e7db04731076b781b1bcf44e7f5 /usr.bin/at/parsetime.c | |
parent | 88257aae3eb0591b28e7b4528a144a4341e53ff5 (diff) |
Remove bogus DST code. mktime() handles DST automatically when
tm_isdst is set to -1.
Diffstat (limited to 'usr.bin/at/parsetime.c')
-rw-r--r-- | usr.bin/at/parsetime.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/at/parsetime.c b/usr.bin/at/parsetime.c index 121041c2b14..b654f3df7c1 100644 --- a/usr.bin/at/parsetime.c +++ b/usr.bin/at/parsetime.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parsetime.c,v 1.24 2015/11/06 23:47:42 millert Exp $ */ +/* $OpenBSD: parsetime.c,v 1.25 2015/11/11 17:40:31 millert Exp $ */ /* * parsetime.c - parse time for at(1) @@ -694,10 +694,6 @@ parsetime(int argc, char **argv) */ runtime.tm_isdst = -1; runtimer = mktime(&runtime); - if (runtime.tm_isdst > 0) { - runtimer -= 3600; - runtimer = mktime(&runtime); - } if (runtimer < 0) { fprintf(stderr, "%s: garbled time\n", __progname); |