]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
/FS-10058: [mod_voicemail] voicemail timestamp plays in military time #resolve
authorBrian West <brian@freeswitch.org>
Mon, 20 Feb 2017 23:30:28 +0000 (17:30 -0600)
committerBrian West <brian@freeswitch.org>
Mon, 20 Feb 2017 23:30:28 +0000 (17:30 -0600)
src/mod/say/mod_say_en/mod_say_en.c

index 63a9388c369491650837d73c43eafd2408a23a44..c379594feccaf3ad4d8cde78d1ccddbc2211f044 100644 (file)
@@ -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) {