diff --git a/repos/libports/src/lib/libc/internal/rtc.h b/repos/libports/src/lib/libc/internal/rtc.h index cb10fd1335..0dcdd5539d 100644 --- a/repos/libports/src/lib/libc/internal/rtc.h +++ b/repos/libports/src/lib/libc/internal/rtc.h @@ -55,7 +55,7 @@ struct Libc::Rtc : Vfs::Watch_response_handler struct tm tm { }; if (strptime(buf, "%Y-%m-%d %H:%M:%S", &tm) || strptime(buf, "%Y-%m-%d %H:%M", &tm)) { - _rtc_value = mktime(&tm); + _rtc_value = timegm(&tm); if (_rtc_value == (time_t)-1) _rtc_value = 0; }