From f4ee6f9b29061c8e7471b96195095a89dcfa712b Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 28 May 2005 19:35:34 +0000 Subject: Fix header date handling. --- common/smtppass.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'common') 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; -- cgit v1.2.3