git: DragonFly_RELEASE_6_4 hammer(8): Fix check_period() to handle DST for daily period

Aaron LI aly at crater.dragonflybsd.org
Thu Nov 12 23:21:39 PST 2026


commit 9fed351408a529514edd19d22f22829af3fca2f4
Author: David Bidner <david at crap.solutions>
Date:   Wed Oct 7 12:32:13 2026 +0200

    hammer(8): Fix check_period() to handle DST for daily period
    
    Converting rounded local midnights with mktime() can leave only 23 hours
    between consecutive dates when daylight saving time starts.  Fix it by
    using timegm() that ignores DST offsets.
    
    Reported-by: pavalos
    Bug: https://bugs.dragonflybsd.org/issues/2526

Summary of changes:
 sbin/hammer/cmd_cleanup.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9fed351408a529514edd19d22f22829af3fca2f4


-- 
DragonFly BSD source repository


More information about the Commits mailing list