diff options
Diffstat (limited to 'env.c')
-rw-r--r-- | env.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -213,12 +213,12 @@ char *rfc822timestamp(void) * weird multibyte i18n characters (such as kanji) from showing up * in your Received headers. */ -#if defined(HAVE_SETLOCALE) && defined(ENABLE_NLS) && defined(HAVE_STRFTIME) +#if defined(HAVE_SETLOCALE) && defined(ENABLE_NLS) setlocale (LC_TIME, "C"); #endif strftime(buf, sizeof(buf)-1, "%a, %d %b %Y %H:%M:%S XXXXX (%Z)", localtime(&now)); -#if defined(HAVE_SETLOCALE) && defined(ENABLE_NLS) && defined(HAVE_STRFTIME) +#if defined(HAVE_SETLOCALE) && defined(ENABLE_NLS) setlocale (LC_TIME, ""); #endif strncpy(strstr(buf, "XXXXX"), tzoffset(&now), 5); |