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]) {
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");