lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit 22302d77 authored by Michael Tremer's avatar Michael Tremer

Fix timezone-dependant interpretation of database timestamp

The timestamp that is retrieved from DNS is in UTC and we must
not interpret as local time.
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 7865c7d4
......@@ -32,7 +32,7 @@ static int parse_timestamp(const unsigned char* txt, time_t* t) {
// If the whole string has been parsed, we convert the parse value to time_t
if (p && !*p) {
*t = mktime(&ts);
*t = timegm(&ts);
// Otherwise we reset t
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment