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:
parent
4832a19173
commit
4ed7018006
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149215
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user