diff options
author | stefanf <stefanf@FreeBSD.org> | 2005-08-18 08:18:02 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2005-08-18 08:18:02 +0000 |
commit | e924b3caca5c4f97419dad34ceb4765763e111e3 (patch) | |
tree | 215a8eb0d7afe64b450a217f0b71ccee0669e6dc /usr.bin/at/parsetime.c | |
parent | 11293f3595866129f0cead6cc0cc9feb2f9fc1e7 (diff) | |
download | FreeBSD-src-e924b3caca5c4f97419dad34ceb4765763e111e3.zip FreeBSD-src-e924b3caca5c4f97419dad34ceb4765763e111e3.tar.gz |
While revision 1.26 fixed the code to really subtract 3600 due to
daylight-saving, this was actually wrong because mktime() already does that for
us.
Diffstat (limited to 'usr.bin/at/parsetime.c')
-rw-r--r-- | usr.bin/at/parsetime.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.bin/at/parsetime.c b/usr.bin/at/parsetime.c index 58c61c4..195a38d 100644 --- a/usr.bin/at/parsetime.c +++ b/usr.bin/at/parsetime.c @@ -619,12 +619,10 @@ parsetime(int argc, char **argv) } /* ugly case statement */ expect(EOF); - /* adjust for daylight savings time + /* convert back to time_t */ runtime.tm_isdst = -1; runtimer = mktime(&runtime); - if (runtime.tm_isdst > 0) - runtimer -= 3600; if (runtimer < 0) panic("garbled time"); |