diff options
author | Stef Walter <stef@memberwebs.com> | 2005-05-28 19:35:34 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2005-05-28 19:35:34 +0000 |
commit | f4ee6f9b29061c8e7471b96195095a89dcfa712b (patch) | |
tree | 2dfa9d6993adef851f0cbad7fdcd2e8b9599e9fc | |
parent | 232021b0200a0d5959c8eff677b3be1d6da29666 (diff) |
Fix header date handling.
-rw-r--r-- | common/smtppass.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/common/smtppass.c b/common/smtppass.c index 0008a8f..3ce2230 100644 --- a/common/smtppass.c +++ b/common/smtppass.c @@ -1342,15 +1342,8 @@ static void make_date(spctx_t* ctx, char* date) trim_end(date); date_len = strlen(date); - { -#ifdef HAVE_TM_GMTOFF - time_t timezone = t2.tm_gmtoff; - char *tzname[2] = { t2.tm_zone, "" }; -#endif - - snprintf(date + date_len, MAX_DATE_LENGTH - date_len, " %+03d%02d (%s)", - (int)(timezone / 3600), (int)(timezone % 3600), tzname[2]); - } + snprintf(date + date_len, MAX_DATE_LENGTH - date_len, " %+03d%02d (%s)", + (int)(timezone / 3600), (int)(timezone % 3600), tzname[t2.tm_isdst ? 1 : 0]); /* Break it off just in case */ date[MAX_DATE_LENGTH - 1] = 0; |