From 46c8f9282ef81545e52a394349729a066fa5723b Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 22 Oct 2003 03:06:47 +0000 Subject: Language fix up git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1646 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- say.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'say.c') 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"); -- cgit v1.2.3