]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - time/strptime.c
Update.
[thirdparty/glibc.git] / time / strptime.c
index fd457af6c01f9555a065061aa30a8826f41e6b09..90b88a1ba33746c627506c5e674b2fe9e478bf75 100644 (file)
@@ -377,7 +377,7 @@ strptime_internal (buf, format, tm, decided)
        case 'I':
          /* Match hour in 12-hour clock.  */
          get_number (1, 12);
-         tm->tm_hour = val - 1;
+         tm->tm_hour = val % 12;
          have_I = 1;
          break;
        case 'j':