summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-05-28 19:35:34 +0000
committerStef Walter <stef@memberwebs.com>2005-05-28 19:35:34 +0000
commitf4ee6f9b29061c8e7471b96195095a89dcfa712b (patch)
tree2dfa9d6993adef851f0cbad7fdcd2e8b9599e9fc /common
parent232021b0200a0d5959c8eff677b3be1d6da29666 (diff)
Fix header date handling.
Diffstat (limited to 'common')
-rw-r--r--common/smtppass.c11
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;