From e924b3caca5c4f97419dad34ceb4765763e111e3 Mon Sep 17 00:00:00 2001 From: stefanf Date: Thu, 18 Aug 2005 08:18:02 +0000 Subject: [PATCH] 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. --- usr.bin/at/parsetime.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/usr.bin/at/parsetime.c b/usr.bin/at/parsetime.c index 58c61c453575..195a38d21df6 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");