From: Brian West Date: Mon, 20 Feb 2017 23:30:28 +0000 (-0600) Subject: /FS-10058: [mod_voicemail] voicemail timestamp plays in military time #resolve X-Git-Tag: v1.8.0~820 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6cc8e54bf1c53fbd2378d016574d2151ed882de;p=thirdparty%2Ffreeswitch.git /FS-10058: [mod_voicemail] voicemail timestamp plays in military time #resolve --- diff --git a/src/mod/say/mod_say_en/mod_say_en.c b/src/mod/say/mod_say_en/mod_say_en.c index 63a9388c36..c379594fec 100644 --- a/src/mod/say/mod_say_en/mod_say_en.c +++ b/src/mod/say/mod_say_en/mod_say_en.c @@ -392,7 +392,12 @@ static switch_status_t en_say_time(switch_say_file_handle_t *sh, char *tosay, sw } if (hour > 12) { - mil++; + if ( mil ) { + mil++; + } else { + hour -= 12; + pm = 1; + } } else if (hour == 12) { pm = 1; } else if (hour == 0) {