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

Aaron LI aly at crater.dragonflybsd.org
Thu Oct 8 21:54:52 PDT 2026


commit 579cdaf85735b8ee499edc440a54bed526cf1972
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/579cdaf85735b8ee499edc440a54bed526cf1972


-- 
DragonFly BSD source repository


More information about the Commits mailing list