Fix a mistake in previous commit.
authorAndrej Kacian <ticho@claws-mail.org>
Tue, 23 Jun 2015 05:49:42 +0000 (07:49 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Tue, 23 Jun 2015 05:49:42 +0000 (07:49 +0200)
src/procheader.c

index fa4ef49bbb4af51f6635b1504d85b80f6851fb62..e5a54163ea2f2a55aa9ce1ba947ade6778af5e67 100644 (file)
@@ -866,7 +866,7 @@ static gint procheader_scan_date_string(const gchar *str,
                        && (sep1 == 'T' || sep1 == 't' || sep1 == ' ')) {
                if (month_n >= 1 && month_n <= 12) {
                        strncpy2(month, monthstr+((month_n-1)*3), 4);
                        && (sep1 == 'T' || sep1 == 't' || sep1 == ' ')) {
                if (month_n >= 1 && month_n <= 12) {
                        strncpy2(month, monthstr+((month_n-1)*3), 4);
-                       if (offset_sign == 'z' || offset_sign == 'Z') {
+                       if (zonestr[0] == 'z' || zonestr[0] == 'Z') {
                                strcat(zone, "+00:00");
                        } else if (sscanf(zonestr, "%c%2d:%2d",
                                                &offset_sign, &zone1, &zone2) == 3) {
                                strcat(zone, "+00:00");
                        } else if (sscanf(zonestr, "%c%2d:%2d",
                                                &offset_sign, &zone1, &zone2) == 3) {