mirror of
https://github.com/WCBROW01/zblock.git
synced 2025-12-11 20:18:07 -05:00
Fix time parsing behavior
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user