Skip to content

Commit

Permalink
fix(dateHeader): allow GMT timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
QHivert committed Dec 13, 2023
1 parent 4b9366d commit 604c8ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sope-mime/NGMime/NGMimeRFC822DateHeaderFieldParser.m
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ static inline size_t findDigitsString(const char *s, size_t len) {
hours += 10 * (*(s + pos) - 48) + *(s + pos + 1) - 48;
break;
default:
NSLog (@"parseTimeZone: cannot parse time notation '%.*s'", (int)len, s);
if(!(len == 3 && *s == 'G' && *(s+1) == 'M' && *(s+2) == 'T'))
NSLog (@"parseTimeZone: cannot parse time notation '%.*s'", (int)len, s);
}

seconds += sign * (3600 * hours + 60 * minutes);
Expand Down

0 comments on commit 604c8ef

Please sign in to comment.