Fix time parsing behavior

This commit is contained in:
2024-11-24 12:45:30 -05:00
parent e1bbea325c
commit da16094410
2 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,7 @@ time_t pubDate_to_time_t(char *s) {
if(!strptime(s, "%a, %d %b %Y %T %Z", &tm)) return 0; // invalid time
}
return mktime(&tm);
return timegm(&tm);
}
// check if the feed currently exists. the result is in the exists pointer.