]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Ensure that pages and emails are sent using RFC822-compliant date format
authorKinsey Moore <kmoore@digium.com>
Tue, 5 Jun 2012 15:15:57 +0000 (15:15 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 5 Jun 2012 15:15:57 +0000 (15:15 +0000)
When localization was added to app_voicemail, these headers were altered
when they should have remained in en_US format for RFC compliance. This
reverts the changes to those two lines.

(closes issue ASTERISK-19876)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@368520 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index c6292de126dc190984ec84f8e527b32bcb347fb8..2a633264edfbc915a7325fe1e6565d88b5db6a9e 100644 (file)
@@ -4563,7 +4563,7 @@ static void make_email_file(FILE *p, char *srcemail, struct ast_vm_user *vmu, in
        }
 
        snprintf(dur, sizeof(dur), "%d:%02d", duration / 60, duration % 60);
-       ast_strftime_locale(date, sizeof(date), "%a, %d %b %Y %H:%M:%S %z", vmu_tm(vmu, &tm), S_OR(vmu->locale, NULL));
+       ast_strftime(date, sizeof(date), "%a, %d %b %Y %H:%M:%S %z", vmu_tm(vmu, &tm));
        fprintf(p, "Date: %s" ENDL, date);
 
        /* Set date format for voicemail mail */
@@ -4921,7 +4921,7 @@ static int sendpage(char *srcemail, char *pager, int msgnum, char *context, char
                snprintf(who, sizeof(who), "%s@%s", srcemail, host);
        }
        snprintf(dur, sizeof(dur), "%d:%02d", duration / 60, duration % 60);
-       ast_strftime_locale(date, sizeof(date), "%a, %d %b %Y %H:%M:%S %z", vmu_tm(vmu, &tm), S_OR(vmu->locale, NULL));
+       ast_strftime(date, sizeof(date), "%a, %d %b %Y %H:%M:%S %z", vmu_tm(vmu, &tm));
        fprintf(p, "Date: %s\n", date);
 
        /* Reformat for custom pager format */