scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit c82f5444f05f9b08b9f8e53b2fa43f640270f22a
parent 8dddb435f85eaf40fca72ee0c35b15afd9de5b58
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Sat, 25 Apr 2026 17:57:21 +0200

libc/time: Consider change hour only in change day

Diffstat:
Msrc/libc/arch/posix/_tzone.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libc/arch/posix/_tzone.c b/src/libc/arch/posix/_tzone.c @@ -298,13 +298,13 @@ _isdst(struct tm *tm) day = start; if (sjulian && bis && day >= 59) day++; - if (yday < day || off < shour) + if (yday < day || yday == day && off < shour) return 0; day = end; if (ejulian && bis && day >= 59) day++; - if (yday > day || off > ehour) + if (yday > day || yday == day && off > ehour) return 0; return 1;