commit 0889c34f135244e851b993c310bf56e359513e7a
parent cf8b507036f41379203d568abf192a927ed08f75
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Fri, 24 Apr 2026 16:33:23 +0200
libc/time: Fix default dst offset
Default dst offset is 1 hour ahead that in our encoding
is actually 1 hour less in the time_t quantity.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libc/arch/posix/_tzone.c b/src/libc/arch/posix/_tzone.c
@@ -171,7 +171,7 @@ dst(void)
next(NULL);
if ((off = offset()) == -1)
- _dstzone = _timezone + SECHOUR;
+ _dstzone = _timezone - SECHOUR;
else
_dstzone = off;