aboutsummaryrefslogtreecommitdiffstats
path: root/say.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-22 03:06:47 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-22 03:06:47 +0000
commit99771c74b187244b47e5d927ba122eb5698507c7 (patch)
tree26052acf1ea277c5508ce1da97418eca49da91b7 /say.c
parent051000ab652c6441c8d5d2e0e73c4957f8b54346 (diff)
Language fix up
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1646 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'say.c')
-rwxr-xr-xsay.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/say.c b/say.c
index 4b8dcf31d..6ded0ab4d 100755
--- a/say.c
+++ b/say.c
@@ -252,12 +252,8 @@ int ast_say_date_with_format(struct ast_channel *chan, time_t time, char *ints,
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 @@ int ast_say_date_with_format(struct ast_channel *chan, time_t time, char *ints,
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");