mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix an off-by-hour bug when crossing Daylight Saving Time boundary.
PR: bin/27399 Submitted by: "Crist J. Clark" <crist.clark@globalstar.com> MFC after: 3 days
This commit is contained in:
parent
58ceb60878
commit
10d865720b
1 changed files with 3 additions and 0 deletions
|
|
@ -268,6 +268,9 @@ setthetime(fmt, p, jflag, nflag)
|
|||
}
|
||||
}
|
||||
|
||||
/* Let mktime() decide whether summer time is in effect. */
|
||||
lt->tm_isdst = -1;
|
||||
|
||||
/* convert broken-down time to GMT clock time */
|
||||
if ((tval = mktime(lt)) == -1)
|
||||
errx(1, "nonexistent time");
|
||||
|
|
|
|||
Loading…
Reference in a new issue