Tag voicemails with UTC time as opposed to local time zone
authorDoug Bailey <dbailey@digium.com>
Thu, 13 Dec 2007 15:40:19 +0000 (15:40 +0000)
committerDoug Bailey <dbailey@digium.com>
Thu, 13 Dec 2007 15:40:19 +0000 (15:40 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92737 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index be062d9..b6136bb 100644 (file)
@@ -2218,9 +2218,9 @@ static int get_date(char *s, int len)
        struct ast_tm tm;
        struct timeval t = ast_tvnow();
        
-       ast_localtime(&t, &tm, NULL);
+       ast_localtime(&t, &tm, "UTC");
 
-       return ast_strftime(s, len, "%a %b %e %r %Z %Y", &tm);
+       return ast_strftime(s, len, "%a %b %e %r UTC %Y", &tm);
 }
 
 static int invent_message(struct ast_channel *chan, char *context, char *ext, int busy, char *ecodes)