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.
This commit is contained in:
stefanf 2005-08-18 08:18:02 +00:00
parent 11293f3595
commit e924b3caca

View File

@ -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");