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 | 1bc164f033cd467853f80e9a08137a67631e63c0 (patch) | |
tree | 7b214a68cda6f5428e715997d6be7860da71714a /common | |
parent | 74f4997fe58ea48bf3d70061a45d56a3a9864d2b (diff) |
Fix header date handling.
Diffstat (limited to 'common')
-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; |