[Asterisk-cvs] asterisk say.c,1.5,1.6

markster at lists.digium.com markster at lists.digium.com
Tue Oct 21 21:40:46 CDT 2003


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv1585

Modified Files:
	say.c 
Log Message:
Language fix up


Index: say.c
===================================================================
RCS file: /usr/cvsroot/asterisk/say.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- say.c	13 Sep 2003 20:51:48 -0000	1.5
+++ say.c	22 Oct 2003 03:06:47 -0000	1.6
@@ -252,12 +252,8 @@
 	int res=0, offset, sndoffset;
 	char sndfile[256], nextmsg[256];
 
-	ast_log(LOG_DEBUG, "ast_say_date_with_format() called\n");
-
 	ast_localtime(&time,&tm,timezone);
 
-	ast_log(LOG_DEBUG, "ast_localtime() returned\n");
-
 	for (offset=0 ; format[offset] != '\0' ; offset++) {
 		ast_log(LOG_DEBUG, "Parsing %c (offset %d) in %s\n", format[offset], offset, format);
 		switch (format[offset]) {
@@ -418,7 +414,7 @@
 			case 'P':
 			case 'p':
 				/* AM/PM */
-				if ((tm.tm_hour == 0) || (tm.tm_hour > 11))
+				if (tm.tm_hour > 11)
 					snprintf(nextmsg,sizeof(nextmsg), DIGITS_DIR "p-m");
 				else
 					snprintf(nextmsg,sizeof(nextmsg), DIGITS_DIR "a-m");




More information about the svn-commits mailing list