]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(strptime_internal): Fix %I format specifier being off by one.
authorUlrich Drepper <drepper@redhat.com>
Wed, 21 May 1997 00:08:10 +0000 (00:08 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 21 May 1997 00:08:10 +0000 (00:08 +0000)
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':