From dc3d7eb38ce0652d22655b7d119392b340e68551 Mon Sep 17 00:00:00 2001
From: Mark Spencer <markster@digium.com>
Date: Fri, 19 Sep 2003 17:52:52 +0000
Subject: [PATCH] Fix inverted if logic

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 apps/app_voicemail2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c
index 186f26e7ec..a2f6225574 100755
--- a/apps/app_voicemail2.c
+++ b/apps/app_voicemail2.c
@@ -1954,7 +1954,7 @@ static int play_message_datetime(struct ast_channel *chan, struct ast_vm_user *v
 
 	/* Can't think of how other diffs might be helpful, but I'm sure somebody will think of something. */
 #endif
-	if (! the_zone)
+	if (the_zone)
 		res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, the_zone->msg_format, the_zone->timezone);
 	else
 		res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, "'vm-received' q 'digits/at' IMp", NULL);
-- 
GitLab